Full RMA webhook
Authentication
This payload was created to showcase all the possible fields that can be included. It contains everything from the Standard payload (https://speca.io/Narvar/self-serve-rma?key=53a661b205b0be1ebf5844bb9780b3c7) and more.
Request body
Retailer Name as it is stored in Narvar system
A unique identifier for the order
Date the order was placed
A unique identifier for the customer
First Name
Last Name
Phone
Phone Extension
Billing Email
Billing Fax
Order amount
Order tax rate
Order tax amount
Payment Method
Last 4 digits of credit/debit card
Merchant Type
Merchant Reference Number
Payment Reference Number
If Payment was done using a gift card
Order Custom Attributes
Unique ID for each return transaction
Date the return was initiated
Unix time stamp of return_created_date
Retailer name as it is stored in the Narvar system
Carrier used to deliver the package
Class of service used for the package
The carrier tracking number for the package
Method selected for the return.
When customer ships the product via mail.
When the customer returns it in store.
When the customer returns on their own.
When customer choose the printerless option.
Return merchandize authorization
This represents the status of the return during its journey to the distribution centre.
This field is populated right after a return is initiated.
This field is populated when we receive a first scan event from the carrier.
This field is populated when we receive a delivered scan event from the carrier.
This field is populated when an user chooses to cancel the return.
This URL can be used to track the package status on the Narvar platform
True if using Narvar Simple Returns product
Date before which the the user has to ship their return
Unix timestamp of ship_by_date
Sent as “true” if the return was initiated by a gift recipient
Final Tax charged for the return transaction
Restocking fee associated with the return
True if Return Override code was used for the return
Return Shipping Fee associated with the return
Estimated refund to the customer
Locale the user chose to initate the return
URL of the label
URL to printerless label/barcode if return method is printerless_mail
This denotes if the transaction was return, exchanges or both.
If the transaction was only return.
If the transaction was only exchanges
If the transaction was return and exchange.
This is the refund method the user chose at the last step of the returns workflow.
If the user chose to receive the refund in the original payment method.
If the user chose to receive the refund via Gift Card.
All the custom attributes at the order level. This is populated from Orders API.
Exchange options chosen by the user
Color of the exchange item
Size of the exchange item
Variant SKU
Title of the item being returned
Variant ID of the exchange item
Responses
SUCCESS
Body
No payload is required in the response to Narvar. We will ignore any data sent back.
ACCEPTED
CREATED
BAD REQUEST
UNAUTHORIZED
FORBIDDEN
INTERNAL SERVER ERROR
Body
Any 5xx response will be considered a failure
Examples
POST /rma HTTP/1.1
Content-Type: application/json
{
"order": {
"retailer_moniker": "peninsula",
"order_number": "ORD123",
"placement_date": "2020-04-16T07:06:49Z",
"customer_id": "3bc3642c-86ee-3b9a-880a-203a22738465",
"billing_document": {
"billed_to": {
"first_name": "John",
"last_name": "Doe",
"phone": "8765432",
"phone_extension": "531",
"email": "narvar@narvar.com",
"fax": "87654321",
"address": {
"city": "Boston",
"state": "MA",
"country": "US",
"street1": "50 Beale St",
"zipcode": "02210"
}
},
"amount": "181.17",
"tax_rate": "2.87",
"tax_amount": "9.91",
"payments": [
{
"method": "Card",
"payment_card": "3839",
"merchant": "VISA",
"merchant_ref": "7533386798858249",
"payment_ref": "7533386798858249",
"gift_card": true
}
]
},
"custom_attributes": {},
"fulfillment_status": "FULFILLED",
"shipment_info": [
{
"id": "peninsula:ORD123",
"tracking_number": "TRACK_23541405_06",
"items": [
{
"product_sku": "23541405",
"item_id": "itemid23541405",
"quantity": 7
}
],
"ship_to": {
"first_name": "John",
"last_name": "Doe",
"phone": "8765432",
"phone_extension": "531",
"email": "narvar@narvar.com",
"fax": "87654321",
"address": {
"city": "Boston",
"state": "MA",
"country": "US",
"street1": "40 Beale St",
"zipcode": "02220"
}
},
"discount": "12.23",
"shipping_amount": "6.42",
"tax": "2.66",
"order_currency": "USD",
"retailer_promise_date": "2019-12-17T07:06:48Z",
"ship_date": "2019-12-16T07:06:48Z",
"carrier": "ups",
"carrier_service": "UPS Ground",
"carrier_service_code": "CSC",
"customer_option": "23541405",
"ship_method": "Ground",
"ship_source": "QLg",
"customer_key": "3bc3642c-86ee-3b9a-880a-203a22738465",
"custom_attributes": {}
}
],
"items": [
{
"product_sku": "23541406",
"item_id": "itemid23541406",
"name": "Narvar QA Order",
"price": "9.99",
"discount_amount": "4.99",
"categories": [
""
],
"events": [
{
"event": "CURRENT_RETURNABLE_QTY",
"date": "2018-10-27T11:11:13.200Z",
"quantity": 5,
"sequence": 3
}
],
"image_url": "https://cdn.shopify.com/s/files/1/0020/4049/6187/products/Narwhal_1.png?v=1532034034",
"final_sale": true,
"shop_runner_eligible": true,
"fulfillment_status": "Shipped",
"final_sale_date": "2019-12-15T07:06:48Z",
"parent_product_sku": "23541406",
"line_number": "23541405-1",
"custom_attributes": {},
"dimensions": {
"uom": "in",
"length": "1.54",
"height": "1.77",
"weight": "10.0",
"weight_uom": "lbs"
},
"discount_percent": "25.0",
"back_ordered": true,
"description": "Narvar QA Test Order",
"url": "http://itempageurl.com/CNSLwx",
"quantity": 10,
"gift": true,
"promise_date": "2019-12-17T07:06:48Z",
"id": "peninsula:ORD123:itemid23541406",
"vendors": [
{
"name": "TestVendorName",
"type": "TestVendorType",
"phone": "7780653467",
"email": "automation2.narvar@gmail.com",
"address": {
"city": "Newark",
"state": "CA",
"country": "US",
"street1": "609 Folsom St",
"street2": "Floor 4",
"zipcode": "94108"
}
}
]
}
],
"returns": [
{
"return_id": "204531",
"return_created_date": "2020-04-17T15:59:09.656Z",
"return_created_date_epoch": 1587139149656,
"retailer": "peninsula",
"carrier": "ups",
"carrier_service_method": "Ground",
"return_tracking_number": "1Z9W9F489014511424",
"return_method": "printerless_mail",
"rma_number": "RA",
"return_tracking_status": "return_initiated_standard",
"tracking_url": "https://peninsula.narvar.com/peninsula/tracking/UPS?tracking_numbers=1Z6W11111650E0319580262&type=ret&order_number=70074401&rma=993338",
"is_simple_return": true,
"return_from": {
"first_name": "John",
"last_name": "Doe",
"phone": "8765432",
"email": "narvar@narvar.com",
"address": {
"city": "Boston",
"state": "MA",
"country": "US",
"street1": "50 Beale St",
"zipcode": "02220"
}
},
"return_to": {
"phone": "1234567890",
"address": {
"city": "San Francisco",
"state": "CA",
"country": "US",
"street1": "50 Beale St.",
"street2": "7th floor",
"zipcode": "94105"
}
},
"ship_by_date": "2020-05-16T07:06:49+0000",
"ship_by_date_epoch": 1589612809000,
"is_gift_return": true,
"tax_amount": 1,
"restocking_fee": 1,
"is_restock_override_used": true,
"return_shipping_fee": 5.95,
"estimated_refund": 1,
"locale": "en_US",
"label_url": "https://returns-qa01.narvar.qa/returns/peninsula/viewlabel?return_id=wzGOvoa6LPwQ8eA2",
"printerless_info_url": "https://returns-qa01.narvar.qa/returns/peninsula/printerless-info?return_id=wzGOvoa6LPwQ8eA2",
"transaction_type": "returnandexchange",
"refund_option": "credit_card",
"custom_attributes": {},
"return_items": [
{
"exchange_item": {
"exchange_option": {
"color": "blue",
"size": "medium"
},
"variant_sku": "string",
"variant_title": "string",
"variant_id": "012"
},
"product_sku": "23541406",
"item_id": "1234",
"line_number": "1",
"item_category": "denim",
"return_quantity": 3,
"return_reason": "Incorrect Item / Damaged",
"retailer_reason_code": "05",
"user_comment": "Did not like",
"parent_sku": "23541406",
"unit_price": "49.99",
"total_item_price": "149.97",
"custom_attributes": {}
}
]
}
]
}
}