Refund requests is a resource that contains a collection of Refund request.
The retrieval of the refund request collection or a single refund request can be authenticated in multiple ways.
Order token: The token of the order that we want its refunds.
Cognito token: The user represented by the token must be the creator of the order associated with this refund.
GET: Retrieve the list of refunds.
Parameter |
Type |
Description |
---|---|---|
order |
String |
URI of the order. |
A collection of Refund request.
[GET] https://shopping-api.paylogic.com/refund_requests?order=https://shopping-api.paylogic.com/orders/f6284ab0fd3147e5b6ea40cc0ba1b69a
{
"_links": {
"self": {
"href": "https://shopping-api.paylogic.com/refund_requests"
},
"curies": [
{
"href": "https://shopping-api-docs.paylogic.com/documentation/{rel}.html",
"name": "shop",
"templated": true,
"type": "text/html"
}
]
},
"_embedded": {
"shop:refund_requests": [
{
"_links": {
"self": {
"href": "https://shopping-api.paylogic.com/refund_requests/d026626a0ac64ec1ab4daff8c8b1c345"
},
"shop:order": {
"href": "https://shopping-api.paylogic.com/orders/f6284ab0fd3147e5b6ea40cc0ba1b69a"
},
"curies": [
{
"href": "https://shopping-api-docs.paylogic.com/documentation/{rel}.html",
"name": "shop",
"templated": true,
"type": "text/html"
}
]
},
"status": "new",
"created_at": "2022-11-14T11:20:23Z",
"refund_percentage": "0.00",
"change_order_percentage": null,
"voucher_percentage": "0.00",
"donation_percentage": "1.00",
"direct_refundable_amount_breakdown": null,
"submitted_bank_details": false,
"keep_tickets": false,
"source": "event_refund",
"_embedded": {
"shop:refund_bill": {
"_links": {
"self": {
"href": "https://shopping-api.paylogic.com/refund-bill?refund_request=b5d33663a7e44f28ad22f43cde57762c"
}
},
"refund_amount": {
"amount": "0.00",
"currency": "EUR"
},
"voucher_amount": {
"amount": "0.00",
"currency": "EUR"
}
}
},
}
]
}
}
Retrieve one Refund request item with the refund request uid.
Refund bill: A partial refund bill object which contains a refund and voucher amounts only.
[GET] https://shopping-api.paylogic.com/refund_requests/d026626a0ac64ec1ab4daff8c8b1c345
{
"_links": {
"self": {
"href": "https://shopping-api.paylogic.com/refund_requests/d026626a0ac64ec1ab4daff8c8b1c345"
},
"shop:order": {
"href": "https://shopping-api.paylogic.com/orders/f6284ab0fd3147e5b6ea40cc0ba1b69a"
},
"curies": [
{
"href": "https://shopping-api-docs.paylogic.com/documentation/{rel}.html",
"name": "shop",
"templated": true,
"type": "text/html"
}
]
},
"status": "new",
"created_at": "2022-11-14T11:20:23Z",
"refund_percentage": "0.00",
"change_order_percentage": null,
"voucher_percentage": "0.00",
"donation_percentage": "1.00",
"direct_refundable_amount_breakdown": null,
"submitted_bank_details": false,
"keep_tickets": false,
"source": "event_refund",
"_embedded": {
"shop:refund_bill": {
"_links": {
"self": {
"href": "https://shopping-api.paylogic.com/refund-bill?refund_request=b5d33663a7e44f28ad22f43cde57762c"
}
},
"refund_amount": {
"amount": "0.00",
"currency": "EUR"
},
"voucher_amount": {
"amount": "0.00",
"currency": "EUR"
}
}
},
}
POST: Create a refund request and return in in the response.
[POST] https://shopping-api.paylogic.com/refund_requests/order
{
"_links": {
"self": {
"href": "https://shopping-api.paylogic.com/refund_requests/d026626a0ac64ec1ab4daff8c8b1c345"
},
"shop:order": {
"href": "https://shopping-api.paylogic.com/orders/f6284ab0fd3147e5b6ea40cc0ba1b69a"
},
"curies": [
{
"href": "https://shopping-api-docs.paylogic.com/documentation/{rel}.html",
"name": "shop",
"templated": true,
"type": "text/html"
}
]
},
"status": "new",
"created_at": "2022-11-14T11:20:23Z",
"refund_percentage": "0.00",
"change_order_percentage": null,
"voucher_percentage": "0.00",
"donation_percentage": "1.00",
"direct_refundable_amount_breakdown": null,
"submitted_bank_details": false,
"keep_tickets": false,
"source": "event_refund",
"_embedded": {
"shop:refund_bill": {
"_links": {
"self": {
"href": "https://shopping-api.paylogic.com/refund-bill?refund_request=b5d33663a7e44f28ad22f43cde57762c"
}
},
"refund_amount": {
"amount": "0.00",
"currency": "EUR"
},
"voucher_amount": {
"amount": "0.00",
"currency": "EUR"
}
}
},
}
PUT: Update a refund request and return it in the response
[PUT] https://shopping-api.paylogic.com/refund_requests/d026626a0ac64ec1ab4daff8c8b1c345
{
"_links": {
"self": {
"href": "https://shopping-api.paylogic.com/refund_requests/d026626a0ac64ec1ab4daff8c8b1c345"
},
"shop:order": {
"href": "https://shopping-api.paylogic.com/orders/f6284ab0fd3147e5b6ea40cc0ba1b69a"
},
"curies": [
{
"href": "https://shopping-api-docs.paylogic.com/documentation/{rel}.html",
"name": "shop",
"templated": true,
"type": "text/html"
}
]
},
"status": "new",
"created_at": "2022-11-14T11:20:23Z",
"refund_percentage": "0.00",
"change_order_percentage": null,
"voucher_percentage": "0.00",
"donation_percentage": "1.00",
"direct_refundable_amount_breakdown": null,
"submitted_bank_details": false,
"keep_tickets": false,
"source": "event_refund",
"_embedded": {
"shop:refund_bill": {
"_links": {
"self": {
"href": "https://shopping-api.paylogic.com/refund-bill?refund_request=b5d33663a7e44f28ad22f43cde57762c"
}
},
"refund_amount": {
"amount": "0.00",
"currency": "EUR"
},
"voucher_amount": {
"amount": "0.00",
"currency": "EUR"
}
}
},
}