Direct Integration
Answers to common questions about implementing and operating Capricorn Direct Integration.
Integration Journey
What steps should I follow for Direct Integration?
Capture the transaction details, use Get Accounts to verify the member account and trading status, prepare the transaction payload, and submit it using Post Transaction. Capricorn revalidates the request against the applicable business rules before accepting or rejecting it.
Do I need to call Get Accounts before posting a transaction?
Get Accounts is the recommended pre-transaction check for confirming the member account and trading status. Post Transaction performs its own business-rule validation, but suppliers should validate the member close to transaction creation rather than relying on old or bulk-validated account data.
Which new transaction endpoint should I use?
Post Direct Transaction submits a Direct Integration transaction using an invoice date. Post Cart Transaction submits an E-Commerce transaction associated with a cart. The existing Post Transaction endpoint remains documented.
What happens when I receive a 202 Accepted response?
A 202 Accepted response confirms that Capricorn accepted the transaction submission request for processing.
Request Requirements
Do I need to include x-captoken in my requests?
Yes. x-captoken is mandatory for the documented API requests and is provided as part of supplier onboarding.
Why am I getting 401 Unauthorized when posting a transaction?
A 401 Unauthorized response can occur if your client_id or client_secret is invalid, or if the supplierId in the request body does not match the supplier associated with the provided x-captoken. Check your credentials and replace any sample supplierId in the Postman collection with the supplier ID associated with your token.
What format should I use for memberId?
Six-digit numeric Capricorn member identifier. Member IDs must always be provided as six digits, including leading zeros where applicable. Examples: 111555, 000555, 007777
What format should I use for invoiceDate?
Post Direct Transaction and Post Cart Transaction require a date-only invoiceDate in YYYY-MM-DD format, for example 2025-09-23. The existing Post Transaction endpoint instead documents transactionDate as a date-time.
Which transaction types can I submit?
Transaction type INV represents an invoice. Transaction type CDT represents a credit note.
Which special characters can I use in invoiceNumber and sourceTransactionReference?
The approved special characters are hyphen (-), underscore (_), forward slash (/), and period (.). The values must also comply with the constraints documented in the current API Reference.
Do I need to include cartId for Direct Integration?
No. cartId identifies the E-Commerce transaction flow and should not be supplied for a Direct Integration transaction unless the authoritative endpoint contract explicitly requires it.
Transaction Rules
How should I handle duplicate transactions?
Use a sourceTransactionReference for each new transaction. A duplicate submission can return 409 Conflict. Do not retry an unchanged duplicate request as though it were a transient error.
Operational Guidance
Should I automatically retry failed transaction submissions?
Provide a controlled resubmission option, but do not blindly retry every failure. First review the status code and response details to determine whether the request must be corrected, retried later, or escalated.
How should I validate Capricorn members in bulk?
For bulk member validation, use the Member Details bulk service rather than performing individual member validations at the start of the day or overnight.
What should my application do when a transaction cannot proceed?
Provide a clear and safe exit or recovery path. Explain the outcome in supplier-friendly language and allow the user to correct the request, retry when appropriate, or return to the relevant application screen.
Should I use reconciliation or transaction reporting?
Yes. Maintain enough reporting to identify accepted, rejected and unresolved submissions. Retain the correlation ID (correlationId in the response body or X-Correlation-ID in a request or response header), sourceTransactionReference and the separate x-transaction-id when available.