Add New Invoice Payment
Production
https://{{subdomain}}.daftra.com/api2
Production
https://{{subdomain}}.daftra.com/api2
POST
https://{{subdomain}}.daftra.com/api2
Invoice Payments
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://.daftra.com/api2/invoice_payments' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer ' \
--header 'apikey: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"InvoicePayment": {
"invoice_id": 0,
"payment_method": "string",
"amount": 0,
"transaction_id": "string",
"treasury_id": 0,
"date": "2019-08-24T14:15:22Z",
"email": "string",
"status": 0,
"notes": "string",
"response_code": "string",
"response_message": "string",
"created": "2019-08-24T14:15:22Z",
"modified": "2019-08-24T14:15:22Z",
"currency_code": "str",
"first_name": "string",
"last_name": "string",
"address1": "string",
"address2": "string",
"city": "string",
"state": "string",
"postal_code": "string",
"country_code": "str",
"phone1": "string",
"phone2": "string",
"transaction_type": "string",
"processed": true,
"attachment": "string",
"staff_id": 0,
"receipt_notes": "string"
}
}'
Response Response Example
202 - Example 1
{
"code": 202,
"result": "successful",
"id": "2415"
}
Request
Path Params
format
stringÂ
required
Header Params
Accept
stringÂ
optional
Default:
application/json
Content-Type
stringÂ
optional
Default:
application/json
Authorization
stringÂ
optional
Default:
Bearer {{access_token}}
apikey
stringÂ
deprecated
Default:
{{apikey}}
Body Params application/json