Get receipt
/account/get_receipt
Target audience: Developers
Get receipt¶
Introduction¶
This endpoint returns a given receipt of a given account.
URI¶
Environment | URI |
---|---|
Stage | https://payway-api.stage.adeprimo.se/external/api/v4/account/get_receipt |
Production | https://backend.worldoftulo.com/external/api/v4/account/get_receipt |
Requirements¶
Identity | Scope |
---|---|
No | /external/account/r |
Parameters¶
Field | Required | Type | Description |
---|---|---|---|
account_id | Required | String | The id of the requested account Size range: ..24 Allowed values: "/^[a-f\d]{24}$/i" |
receipt_id | Required | String | The id of the requested receipt Size range: ..24 Allowed values: "/^[a-f\d]{24}$/i" |
Curl Example¶
curl --request GET \
--url https://payway-api.stage.adeprimo.se/external/api/v4/account/get_receipt \
--header 'accept: application/json' \
--header 'authorization: Bearer <token_without_identity>' \
--header 'content-type: application/json' \
--data '{
"account_id": "50f3ac249f6aef294d000007",
"receipt_id": "50f3ac249f6aef294d000007"
}'
Response¶
HTTP 200 OK
{
"item": {
"id": "50f3ac249f6aef294d000007",
"organisation_id": "adeprimo",
"created_at": "2019-08-21T12:00:00.000+02:00",
"updated_at": "2019-08-21T12:00:00.000+02:00",
"paid_at": "2019-08-21T12:00:00.000+02:00",
"company_name": "Adeprimo Ab",
"crn": "123456-7890",
"order_id": "ORDERID-123",
"email": "sales@adeprimo.se",
"phone_nr": "+4670 1234567",
"address": "Zätagränd 11, 11111 Östersund",
"receipt_text": "Thank you for purchasing from us!",
"articles": [
{
"name": "Digital (1 month)",
"type": "subscription",
"amount": "100.0",
"numbers": "",
}
],
"sum": "100.0",
"vat_specifications": [
{
"vat_amount": "20.0",
"vat_percentage": "25",
"net_amount": "80.0",
"gross_amount": "100.0",
}
],
"payment_method": "CREDITCARD",
"masked_cc_nr": "54**********1234",
}
}
Errors¶
This API uses the common error conventions of the Payway API