Subscription templates

List all subscription templates

This call retrieves a paginated list of all subscription templates available in the administration. Each page consists of up to 100 subscription templates. To access subsequent pages, utilize the page parameter to fetch the next set of subscription templates.

Parameters

Parameter Type Description
page Integer

Example: lists subscription templates for the administration

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XGET \
  https://moneybird.com/api/v2/123/subscription_templates.json?
    

Response

        
          
          Status: 200 OK
        
      
[
  {
    "id": "416087685054072219",
    "administration_id": 123,
    "workflow_id": "416087684959700370",
    "document_style_id": "416087684913563024",
    "mergeable": false,
    "contact_can_update": true,
    "products": [
      {
        "id": "416087685039392154",
        "administration_id": 123,
        "description": "fancy product",
        "title": null,
        "identifier": null,
        "price": "10.0",
        "currency": "EUR",
        "frequency": 1,
        "frequency_type": "month",
        "tax_rate_id": "416087685031003544",
        "ledger_account_id": "416087685035197849",
        "created_at": "2024-03-21T14:42:40.314Z",
        "updated_at": "2024-03-21T14:42:40.314Z"
      }
    ]
  }
]
      

Create online sales link

This call generates an online sales link, which enables pre-setting the contact and start date for a subscription.

Parameters

Parameter Type Description
start_date Date

Example: creates an online sales link

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer 84ec207ad0154a508f798e615a998ac1fd752926d00f955fb1df3e144cba44ab" \
  -XGET \
  https://moneybird.com/api/v2/123/subscription_templates/416087685480842683/checkout_identifier.json?contact_id=416087685488182718&start_date=2024-03-21
    

Response

        
          
          Status: 200 OK
        
      
"http://checkout.moneybird.dev/s/QUVCMVA4a25HZVVkMnBVUHVYREcyY3oyaTZoeCtkY09DQkVoQ0Q4RU5acExJeFV3aysvdm5VWCtXeWJQYjNCRklWTEFhN1J4SkhhRzdXMWtoVFJ1Z1ZUMTlVMGk1ZkpuOWZRL0xFYThVajVyd2ovYnhMRUp3MkluaDdxMGIwOW95RGlsR3VBPS0tQWMrVm5QckFnT2lWTHVrYy0tTUx0L1ArRDdiK2MvMVM2OVNkYVllZz09"