API V3CollectionOrder
Creates a CollectionOrder resource.
This endpoint allows you to add new invoices to an existing collection order.
The collection order must exist, belong to your account, and must not have the status paid. The total amount of the collection order is automatically recalculated after the invoices are added.
If date is not provided for an invoice, it defaults to today.
POST
/v3/collection_orders/{id}/invoicescurl -X POST "/v3/collection_orders/{id}/invoices" \
-H "Authorization: Bearer $POM_API_DOCUMENTATION_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"invoices": [
{
"type": "transaction_costs",
"number": "1234567890",
"date": "2025-05-01",
"description": "Invoice2012",
"description2": "Invoice2012",
"description3": "Invoice2012",
"amount": "1295",
"amount2": "1295",
"amount3": "1295",
"due_date": "2025-05-01"
}
]
}'Authorization
AuthorizationstringheaderrequiredOAuth 2.0 client credentials Grant
Parameters
idstringpathrequiredCollectionOrder identifier
Body
application/json
The new CollectionOrder resource
invoicesCollectionOrderInvoiceInput-collection_order.write[]
Response
application/json
CollectionOrder resource created
collection_order_idintegertotal_amountinteger
{
"collection_order_id": 0,
"total_amount": 0
}