Esempi Payload
Creazione Richiesta di pagamento
{
"creditor": {
"identifiers": [
{
"type": "TS_DIGITAL_ID",
"country": "Italy",
"value": "5841dc57-59e9-4b82-b751-a03799a21cf6"
}
]
},
"debtor": {
"identifiers": [
{
"type": "VAT_NUMBER",
"country": "IT",
"value": "23434565432"
}
],
"name": "Debitore fannullone",
"email": "test.debitore@teamsystem.com"
},
"totalAmount": {
"currency": "EUR",
"amount": "3299.99"
},
"availablePaymentPlans": [
{
"type": "MULTIPLE_INSTALLMENTS",
"description": "Piano rateale",
"installments": [
{
"description": "Prima rata",
"dueDate": "2022-02-19T16:17:47.720Z",
"amount": {
"currency": "EUR",
"amount": "1000.00"
}
},
{
"description": "Seconda rata",
"dueDate": "2022-09-08T12:17:47.720Z",
"amount": {
"currency": "EUR",
"amount": "1000.00"
}
},
{
"description": "Terza rata",
"dueDate": "2022-10-08T12:17:47.720Z",
"amount": {
"currency": "EUR",
"amount": "1299.99"
}
}
]
},
{
"type": "SINGLE_INSTALLMENT",
"description": "Pagamento totale",
"installments": [
{
"description": "Rata unica",
"dueDate": "2022-08-08T12:17:47.720Z",
"amount": {
"currency": "EUR",
"amount": "3299.99"
}
}
]
}
],
"availablePaymentMethods": [
{
"name": "TS_PAY_BANK_TRANSFER"
},
{
"name": "TS_PAY_CREDIT_CARD"
}
],
"paymentReason": "Fattura n.4 del 20 Luglio 2021",
"ownerId": "5841dc57-59e9-4b82-b751-a03799a21cf6",
"transmitterId": "5841dc57-59e9-4b82-b751-a03799a21cf6",
"paymentDocuments": [
{
"type": "AGYO_INVOICE",
"description": "test",
"id": "8009cfb3-e7f1-43d1-a2a9-e1f263e5159c"
},
{
"type": "DOC_STORE_DOCUMENT",
"description": "file doc store test",
"id": "d015f194-2609-4496-a7ec-6aba33a4b51c"
}
]
}
Creazione di un pagamento
{
"installmentIds": [
"0.0",
"0.1"
],
"paymentMethodName": "TS_PAY_BANK_TRANSFER",
"paymentPlanId": "0",
"langLocale": "it-IT",
"scheduled": true
}
Creazione di una preferenza
{
"daysDueDate": 30,
"emailSettings": {
"bodyText": "Ciao benvenuto"
}
}
No comments to display
No comments to display