This operation enables you to:
When you get an order you have to send in the below attributes:
To get a specific order you have to send the above attributes, via a server-side call to our REST API. You’ll find the complete REST API reference here.
GET /v1/orders/<orderId>
x-api-key: njdfdsdkjfl5598503mnfkfe
x-merchant-key: 86969769
Content-Type: application/json
All request parameters have to submittet in the url. No message body should be sent in.
The response will either be OK or an error code.
Below you have an example of the response from the request obove.
Status: 200 OK
{
"id": "REPxb6Xv48pfbuQDdS5Y",
"merchantId": "177358941",
"status": "READY",
"properties": {
"method": "PARTPAYMENT",
"submethod": "PARTPAYMENT_SE_1",
"startFee": 0,
"adminFee": 1500,
"perMonth": 31500,
"payments": 1,
"creditCost": 1500,
"raise": false,
"new": false,
"accountNumber": "98525049****8096",
"previousCreditLimit": 400000,
"availableAmount": 355000,
"openReservation": true,
"directDebit": false
},
"created": "2018-10-11T15:20:18+02:00",
"amount": 30000,
"currency": "SEK",
"debitedAmount": 0,
"creditedAmount": 0,
"orderReference": "orderReferenceDefValue",
"consumer": {
"nationalId": "SE701001-2750",
"name": {
"firstName": "Fred",
"lastName": "Lundqvist"
},
"address": {
"line1": "Kärrgatan 1",
"city": "Norsborg",
"zip": "145 60",
"country": "SE"
},
"contactInfo": {
"email": "pada09@ecster.se",
"cellular": {
"number": "070733"
},
"phone": {
"number": "018-430353"
}
}
},
"transactions": [
{
"id": "xVTZNc6Lh7Qk9e2l5qBo",
"type": "ORIGINAL",
"created": "2018-10-11T15:20:18+02:00",
"amount": 30000,
"rows": [
{
"name": "Test name def value",
"quantity": 1,
"unitAmount": 30000,
"vatRate": 2500,
"partNumber": "00012",
"description": "TestDescription",
"unit": "st",
"discountAmount": 0,
"serials": [],
"fee": false
}
],
"message": "TestMessageDefValue",
"merchantId": "177358941"
}
],
"tags": [
"testTagType1:testTagMsg1",
"testTagType2:testTagMsg2"
],
"localizedInfo": [
{
"id": "decisionMessage",
"text": "",
"value": "Din ansökan är godkänd."
}
],
"debitConsentPdfUrl": "https://secure.ecster.se/rest/public/v1/content/consumer/documents/se/sv/test",
"debitConsentInfo": {
"text": "Lorem ipsum dolor sit amet, eros falli argumentum ius at.",
"localizedInfo": []
}
}