Invoice
Pay an Invoice
Changed onIf the invoice is unpaid, will process the payment and return the result. Will return an exception otherwise
post/billing/v1/invoices/{invoiceNumber}/payments
Request
- Base URLhttps://marketplace.appdirect.com/api
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
invoiceNumberinteger required
The unique identifier for the invoice provided by the channel.
Request body
Example request
{
"amount": 12345,
"company": {
"href": "...",
"id": "..."
},
"currency": "INR",
"date": 12345,
"gatewayResponse": {
"avs": true,
"code": "...",
"cvv": true,
"message": "..."
},
"id": 12345,
"links": [
{
"href": "...",
"rel": "..."
},
{
"href": "...",
"rel": "..."
}
],
"method": "PAYPAL",
"result": "GATEWAY_NOT_AVAILABLE",
"transactionId": "...",
"user": {
"href": "...",
"id": "..."
}
}Response
OK
Example response
{
"amount": 12345,
"company": {
"href": "...",
"id": "..."
},
"currency": "INR",
"date": 12345,
"gatewayResponse": {
"avs": true,
"code": "...",
"cvv": true,
"message": "..."
},
"id": 12345,
"links": [
{
"href": "...",
"rel": "..."
},
{
"href": "...",
"rel": "..."
}
],
"method": "PAYPAL",
"result": "GATEWAY_NOT_AVAILABLE",
"transactionId": "...",
"user": {
"href": "...",
"id": "..."
}
}Changes
- info
endpoint added
- info