Vi starter med at lave en get til

https://api.gsgroup.io/v1.0/Orders/v1.0/Orders/{orderId}/materials

Brug din Bearer Token ( access_token ) fra Step 1.1 til at kalde ovenstående API.

nu får du de vare som tilhøre din forspurte order

{

"userReference": {

"id": "bryn01",

"externalId": "bryn01"

},

"storeReference": {

"id": "0",

"externalId": "0"

},

"wholesalerReference": {

"id": "SD",

"externalId": "SD"

},

"date": "2019-11-08T13:11:58",

"quantity": 1.0,

"itemNo": "000000000A022",

"description": "Miljøbidrag store hushld.art",

"unit": "St",

"totalPrice": 0.02,

"costPrice": 0.0,

"vatRate": null,

"itemNo2": "",

"billable": true,

"status": 2,

"smartdayMaterial": {

"unitPrice": 0.02,

"comment": null,

"categoryReference": {

"id": "0",

"externalId": "0"

}

},

"handymanMaterial": null,

"id": "5a7f477a-a2a8-4a5c-b60f-4896292aa977",

"externalId": "5a7f477a-a2a8-4a5c-b60f-4896292aa977"

}

Fandt du dit svar?