Menu
Create External Invoice
Create an external invoice
POST
/external_subscriptions/{external_subscription_id}/external_invoicesUse it in a workflow
- Add a step and choose the Recurly connector.
- Pick the Create External Invoice action (under external_invoices).
- Fill in the fields below, then reference the result from later steps as
{{createExternalInvoice.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"external_id": "string",
"state": "paid",
"total": "string",
"currency": "string",
"purchased_at": "2025-01-01T00:00:00Z",
"line_items": [
{
"currency": "string",
"unit_amount": "string",
"quantity": 0,
"description": "string",
"external_product_reference": null
}
],
"external_payment_phase": {
"started_at": "2025-01-01T00:00:00Z",
"ends_at": "2025-01-01T00:00:00Z",
"starting_billing_period_index": 0,
"ending_billing_period_index": 0,
"offer_type": "string",
"offer_name": "string",
"period_count": 0,
"period_length": "string",
"amount": "string",
"currency": "string"
},
"external_payment_phase_id": "string"
}
Response
Returns 201 with an object. Read it in later steps with {{createExternalInvoice.response.data.<field>}}.
{
"id": "string",
"object": "string",
"account": {
"id": "string",
"object": "string",
"code": "string",
"email": "name@example.com",
"first_name": "string",
"last_name": "string",
"company": "string",
"parent_account_id": "string",
"bill_to": "string",
"dunning_campaign_id": "string"
},
"external_subscription": {
"id": "string",
"object": "string",
"account": {
"id": "string",
"object": "string",
"code": "string",
"email": "name@example.com",
"first_name": "string",
"last_name": "string",
"company": "string",
"parent_account_id": "string",
"bill_to": "string",
"dunning_campaign_id": "string"
},
"external_product_reference": {
"id": "string",
"object": "string",
"reference_code": "string",
"external_connection_type": "string",
"created_at": "2025-01-01T00:00:00Z",
"updated_at": "2025-01-01T00:00:00Z"
},
"external_payment_phases": [
{
"id": "string",
"object": "string",
"started_at": "2025-01-01T00:00:00Z",
"ends_at": "2025-01-01T00:00:00Z",
"starting_billing_period_index": 0,
"ending_billing_period_index": 0,
"offer_type": "string",
"offer_name": "string",
"period_count": 0,
"period_length": "string",
"amount": "string",
"currency": "string"
}
],
"external_id": "string",
"uuid": "string",
"last_purchased": "2025-01-01T00:00:00Z",
"auto_renew": false,
"in_grace_period": false,
"app_identifier": "string",
"quantity": 1
},
"external_id": "string",
"state": "paid",
"total": "string",
"currency": "string",
"line_items": [
{
"id": "string",
"object": "string",
"account": {
"id": "string",
"object": "string",
"code": "string",
"email": "name@example.com",
"first_name": "string",
"last_name": "string",
"company": "string",
"parent_account_id": "string",
"bill_to": "string",
"dunning_campaign_id": "string"
},
"currency": "string",
"unit_amount": "string",
"quantity": 0,
"description": "string",
"external_product_reference": {
"id": "string",
"object": "string",
"reference_code": "string",
"external_connection_type": "string",
"created_at": "2025-01-01T00:00:00Z",
"updated_at": "2025-01-01T00:00:00Z"
},
"created_at": "2025-01-01T00:00:00Z",
"updated_at": "2025-01-01T00:00:00Z"
}
],
"purchased_at": "2025-01-01T00:00:00Z",
"created_at": "2025-01-01T00:00:00Z",
"updated_at": "2025-01-01T00:00:00Z"
}
Need more? See the Recurly guide for connection setup and behaviour shared by every action.
Was this page helpful?