Use these methods to commit and uncommit Document Codes:
cmmt
) in the invoiceEndpoint | Method | Description | Request | Response |
---|---|---|---|---|
/api/v2/afc/commit | POST | Commits and Uncommits transactions. See Commit/Uncommit for more information. | Commit Request | Commit Response |
The Commit request is used to change the Commit flag (cmmt
) for a given Document Code (doc
). Let’s send a simple Commit
call using Postman and inspect the results.
Add these mandatory headers to your request:
Authorization
using basic HTTP authenticationclient_id
Content-Type: application/json
Include the client_profile_id
if you are using a client profile.
For the body of the POST
request, copy and paste this example:
doc
) "DocumentCode12345"cmmt
) to true
true
commits all transactions with Document Code (doc
) – “DocumentCode12345” in this examplefalse
uncommits all transactions with Document Code (doc
)opt
) objectThe Commit response contains a confirmation of success or failure:
true
indicates that the Document Code (doc
) has been committed or uncommitted successfully (depending on the value of the Commit flag (cmmt
))false
indicates an error - details are contained in the Error response object