POST /purchase-invoice-payments.json

POST /purchase-invoice-payments.json
application/json

Body Required

Responses

POST /purchase-invoice-payments.json
curl \
 -X POST http://api.example.com/v1/purchase-invoice-payments.json \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"amount":0,"exchangeRate":1,"externalId":"string","paidAt":{},"paymentMethodId":42,"purchaseInvoiceId":42,"purchaseItemId":42,"reference":"string","status":"active","totals":{},"transferId":"string","type":"payment","xeroId":"string"}'
Request example
{
  "amount": 0,
  "exchangeRate": 1,
  "externalId": "string",
  "paidAt": {},
  "paymentMethodId": 42,
  "purchaseInvoiceId": 42,
  "purchaseItemId": 42,
  "reference": "string",
  "status": "active",
  "totals": {},
  "transferId": "string",
  "type": "payment",
  "xeroId": "string"
}
Response examples (200)
{
  "amount": 0,
  "createdAt": "2024-05-04T09:42:00+00:00",
  "exchangeRate": 1,
  "externalId": "string",
  "id": 42,
  "paidAt": {},
  "paymentMethodId": 42,
  "purchaseInvoiceId": 42,
  "purchaseItemId": 42,
  "reference": "string",
  "status": "active",
  "totals": {},
  "transferId": "string",
  "type": "payment",
  "updatedAt": "2024-05-04T09:42:00+00:00",
  "xeroId": "string"
}