Notifications\InvoiceDTO
The Notifications\InvoiceDTO
object represents invoice data, including information about amounts related to the invoice, its status, and associated deal data.
Field Descriptions
Name | Type | Description |
---|---|---|
id | string | Unique identifier of the invoice. |
internalId | string | null | Internal identifier of the invoice, if applicable. |
type | DirectionType | Type of the invoice. |
status | InvoiceStatus | Status of the invoice. |
sum | MoneyDTO | Amount of the invoice. |
storeId | integer | Identifier of the store associated with the invoice. |
storeName | string | Name of the store associated with the invoice. |
receivedSumFromTaker | MoneyDTO | null | Amount received from the taker, if applicable. |
receivedSumFromMaker | MoneyDTO | null | Amount received from the maker, if applicable. |
serviceFeeSum | MoneyDTO | null | Service fee for the invoice, if applicable. |
payoutSum | MoneyDTO | null | Payout amount, if applicable. |
createdAt | string | Date and time the invoice was created in ISO 8601 format. |
expireAt | string | Date and time the invoice expires in ISO 8601 format. |
updatedAt | string | Date and time the invoice was last updated in ISO 8601 format. |
deal | Notifications\DealDTO | Data about the deal associated with the invoice. |
Example
{
"id": "e15e0486-c17a-4530-a259-997cbab26a0b",
"internalId": "405953",
"type": "in",
"status": "paid",
"sum": {
"amount": "3650.00",
"currency": "RUB",
"subunit": 2
},
"storeId": 379,
"storeName": "Test Store Name",
"receivedSumFromTaker": {
"amount": "3650.00",
"currency": "RUB",
"subunit": 2
},
"receivedSumFromMaker": {
"amount": "35.00527476",
"currency": "USDT",
"subunit": 8
},
"serviceFeeSum": {
"amount": "2.97544836",
"currency": "USDT",
"subunit": 8
},
"payoutSum": {
"amount": "32.02982640",
"currency": "USDT",
"subunit": 8
},
"rate": "104.27",
"createdAt": "2024-11-23T20:40:12+00:00",
"expireAt": "2024-11-23T21:40:12+00:00",
"updatedAt": "2024-11-23T20:43:07+00:00",
"deal": {
"id": "e15e0486-c17a-4530-a259-997cbab26a0b",
"type": "in",
"status": "completed",
"paymentMethod": "tinkoff",
"paymentOption": "TO_CARD",
"requisites": {
"requisites": "2234 7017 2272 7358",
"holder": "holder name"
},
"canceledAt": "2024-11-23T21:10:12+00:00",
"disputeAttachment": null,
"disputeReason": null,
"disputeReasonData": [],
"payment": {
"takerSum": {
"amount": "3650.00",
"currency": "RUB",
"subunit": 2
},
"makerSum": {
"amount": "35.00527476",
"currency": "USDT",
"subunit": 8
},
"feeSum": {
"amount": "2.97544836",
"currency": "USDT",
"subunit": 8
},
"date": "2024-11-23T20:43:07+00:00"
},
"attachments": [],
"disputeResult": null
}
}