PaymentAttachments: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 10: | Line 10: | ||
<span class="api-ver">v2</span> This API endpoint is available in '''API v2''' only. | <span class="api-ver">v2</span> This API endpoint is available in '''API v2''' only. | ||
This API allows merchants to attach images and files to an already completed payment. The Payment identifier of a completed and successful payment is needed. The attachments will be available for display or download in the Barion web and mobile app. | |||
This API allows merchants to attach images and files to an already completed payment. The Payment identifier is needed. | |||
'''API Input JSON''' | '''API Input JSON''' | ||
<source lang="javascript"> | <source lang="javascript"> | ||
{ | { | ||
POSKey: "999FFDDA-04FF-333F-CCCC-345FCB555FFC", | |||
PaymentID: "453AC5345-5A66-564D-D348-78754F3453AD", //will attach the files to this payment, if it was successful | |||
Attachments: [ | Attachments: [ | ||
{ | { | ||
Name: "", | Name: "Sisters of Mercy Ticket", | ||
Description: " | Description: "Sister of Mercy ticket, A38, 2017.09.20 21:30", | ||
Type: "Ticket", | |||
URL: "https://tickets.a38.hu/4565FF-35643F-646C-3475758AB3C", | |||
Behavior: "Display", | |||
}, | }, | ||
{ | { | ||
Name: "Sisters of Mercy Ticket", | |||
Description: "Sister of Mercy ticket, A38, 2017.09.20 21:30", | |||
Type: "Ticket", | |||
URL: "https://tickets.a38.hu/436AFF-38563F-646C-2343579AADD", | |||
Behavior: "Display", | |||
}, | }, | ||
{ | { | ||
Name: " | Name: "Sisters of Mercy Invoice", | ||
Description: " | Description: "Sister of Mercy Invoice, 12.000,- Ft, 2 pcs", | ||
Type: "Invoice", | |||
URL: "https://tickets.a38.hu/436AFF-38563F-646C-45FFF46898D", | |||
Behavior: "Download", | |||
} | } | ||
] | ] | ||
} | } | ||
</source> | </source> | ||
Revision as of 15:00, 9 September 2017
WARNING
This is under construction and it is a FUTURE API being designed!
Barion API: Payment Attachments - planned API
POST | /v2/Payment/Attachments/Add |
---|
v2 This API endpoint is available in API v2 only.
This API allows merchants to attach images and files to an already completed payment. The Payment identifier of a completed and successful payment is needed. The attachments will be available for display or download in the Barion web and mobile app.
API Input JSON
{
POSKey: "999FFDDA-04FF-333F-CCCC-345FCB555FFC",
PaymentID: "453AC5345-5A66-564D-D348-78754F3453AD", //will attach the files to this payment, if it was successful
Attachments: [
{
Name: "Sisters of Mercy Ticket",
Description: "Sister of Mercy ticket, A38, 2017.09.20 21:30",
Type: "Ticket",
URL: "https://tickets.a38.hu/4565FF-35643F-646C-3475758AB3C",
Behavior: "Display",
},
{
Name: "Sisters of Mercy Ticket",
Description: "Sister of Mercy ticket, A38, 2017.09.20 21:30",
Type: "Ticket",
URL: "https://tickets.a38.hu/436AFF-38563F-646C-2343579AADD",
Behavior: "Display",
},
{
Name: "Sisters of Mercy Invoice",
Description: "Sister of Mercy Invoice, 12.000,- Ft, 2 pcs",
Type: "Invoice",
URL: "https://tickets.a38.hu/436AFF-38563F-646C-45FFF46898D",
Behavior: "Download",
}
]
}