İade gönderisi oluşturma #
İade gönderisi oluşturmak için gönderi id’sini adres kısmına koyup aşağıdaki gibi bir POST isteği atmanız yeterlidir.
Örnek İstek #
curl --request POST \
--url https://api.geliver.io/api/v1/shipments/{shipmentID} \
--header 'Authorization: Bearer {{bearerToken}}' \
--header 'Content-Type: application/json' \
--data '{
isReturn: true
}'
Parametreler | Açıklama |
---|---|
shipmentID | İadesini oluşturmak istediğiniz gönderinin guid’si |
Cevap #
İade oluşumundan gelen başarılı istek cevabı aşağıdaki gibidir.
{
"result": true,
"additionalMessage": "Success",
"data": {
"id": "5aca8839-3987-4c36-aaf5-00c32a915215",
"createdAt": "2022-06-23T21:24:46.291746+03:00",
"updatedAt": "2022-06-23T21:24:46.298209+03:00",
"amount": "10.75",
"currency": "TL",
"amountLocal": "10.75",
"currencyLocal": "TL",
"amountVat": "1.99",
"amountLocalVat": "10.75",
"amountTax": "0",
"amountLocalTax": "0",
"totalAmount": "12.99",
"totalAmountLocal": "12.99",
"offerID": "38f0e8cc-7534-4af4-994f-90dd54451abd",
"shipment": {
"id": "e37b55c5-c649-4312-8987-5527bcacf0af",
"createdAt": "2022-06-23T21:22:33.306058+03:00",
"updatedAt": "2022-06-23T21:24:46.296889+03:00",
"amount": "10.75",
"currency": "TL",
"amountLocal": "10.75",
"amountVat": "1.935",
"amountLocalVat": "0",
"amountTax": "0",
"amountLocalTax": "0",
"totalAmount": "1.935",
"totalAmountLocal": "1.935",
"length": 10,
"width": 10,
"height": 10,
"desi": 1,
"distanceUnit": "cm",
"weight": 1,
"massUnit": "kg",
"useWeightOfItems": false,
"useDimensionsOfItems": false,
"trackingStatus": null,
"barcode": "2792351829",
"labelFileType":"PDF",
"labelURL":"https://api.geliver.io/tags/ec639f5d-fd32-4296-bde7-170f2b12bca2.pdf"
"hidePackageContentOnTag": false,
"shipmentDate": null,
"invoiceGenerated": false,
"orderID": "bb765dfb-f9a7-4227-b4dd-369506e46316",
"order": null,
"senderAddressID": "5d3ce1a0-0a30-4f79-b414-ebbadf1c4e73",
"senderAddress": null,
"recipientAddressID": "59bda251-73d1-4e2f-89e7-df40e362f275",
"recipientAddress": null,
"createReturnLabel": false,
"statusCode": "TRACKING_CODE_CREATED",
"offers": null,
"acceptedOfferID": "38f0e8cc-7534-4af4-994f-90dd54451abd",
"acceptedOffer": null,
"providerCode": "SURAT",
"providerServiceCode": "SURAT_STANDART",
"enableAutomation": false,
"organizationShipmentID": 43,
"providerBranchName": null,
"providerInvoiceNo": null,
"providerReceiptNo": null,
"providerSerialNo": null
},
"description": "",
"isRefund": false,
"isCustomAccountCharge": false,
"isReturn": true
}
}
Parametreler | Açıklama |
---|---|
isReturn | İade gönderisi olduğunu belirtir |
Cevabın açıklamalarını Gönderi oluşturma isteğinin cevabından görebilirsiniz.