Get Started

Examples of Committing a Batch

Table - Examples - Commit a Batch

Request:
POST/customers/MPCTEST1/batches/B3/orders
Response:
201 Created
{
"orders":
[
{
"id":"NTR3039817 ","createdOn":"2016-07-28T00:16:42Z",
"lastUpdatedOn":"2016-07-28T00:16:42Z","status":"Committed",
"settlementCurrency":"USD"
}
]
}
Request:
POST /customers/MPCTEST1/batches/B4/orders
Response:
400 Bad Request
{
"errorCode":1103
}
Request:
POST /customers/MPCTEST1/batches/B4/orders
{
"settlements":
[
{
"settlementCurrency":"USD",
"settlementMethod":"WIRE"
}
]
}
Response:
201 Created
{
"orders":
[
{
"id":"NTR3039830 ","createdOn":"2016-07-28T00:17:22Z",
"lastUpdatedOn":"2016-07-28T00:17:22Z","status":"Committed",
"settlementCurrency":"USD"},{"id":"NTR3039831 ",
"createdOn":"2016-07-28T00:17:22Z","lastUpdatedOn":"2016-07-28T00:17:22Z",
"status":"Committed","settlementCurrency":"CAD"
}
]
}