Docs

Return Order Webhook

POSThttps://your_server_address/{your_return_order_endpoint}

Notifies you of a return status update.

The same body is sent when a return is created (the "返品作成" (return created) event in the admin) and when it is updated ("返品更新", return updated). Fields without a value are omitted, and null is never sent. Amounts are currently sometimes sent as decimals such as 5000.0. Accept both integer and decimal forms.

Headers

  • X-Recustomer-Signature-256-V2stringrequired

    Signature. The lowercase hexadecimal HMAC-SHA256 of {value of X-Recustomer-Signature-256-V2-Timestamp-Epoch}.{body} (without sha256=). Use the webhook secret string itself as the key (do not decode it as hexadecimal), and the body bytes exactly as received (do not reformat the JSON)

    Pattern: ^[a-f0-9]{64}$

  • X-Recustomer-Signature-256-V2-Timestamp-Epochstringrequired

    Time of signing (Unix time in seconds). Renewed each time the notification is sent. Reject values that differ from the current time by more than 5 minutes

  • X-Recustomer-Signature-256stringrequired

    Signature of the body, which is sha256= followed by the lowercase hexadecimal HMAC-SHA256 of the body (the key and body are handled as in X-Recustomer-Signature-256-V2). It does not include a timestamp, so use X-Recustomer-Signature-256-V2 to verify notifications

    Pattern: ^sha256=[a-f0-9]{64}$

  • X-Recustomer-Sender-Idstringrequired

    An identifier fixed for each store. The same as the value shown in the admin Webhook settings

  • X-Recustomer-Event-Idstringrequired

    Event ID. Unchanged when the notification is sent again. The same event may arrive more than once, so use it to detect duplicates

  • X-Recustomer-Event-Occurred-Atstring(date-time)required

    Time the event occurred (ISO 8601; currently sent in UTC). It is not the time of sending and stays the same across retries. The order of delivery is not guaranteed, so you can use this value to determine the order of events

Request body

  • idintegerrequired

    ID of the Return Order

  • external_order_idstring

    ID of the original order (omitted if empty)

  • order_numberstringrequired

    Order number

  • request_idstringrequired

    ID of the request

  • created_atstring(date-time)required

    Return created at

  • refund_reject_reasonstring

    Reason for rejecting the refund

  • approval_atstring(date-time)

    Return approved at

  • send_backed_atstring(date-time)

    Sent back at

  • reshipmented_atstring(date-time)

    Reshipped at

  • exchanged_atstring(date-time)

    Exchanged at

  • refunded_atstring(date-time)

    Refunded at

  • completed_atstring(date-time)

    Request completed at

  • approval_statusstring

    Approval status

    Possible values: unapproved partially_unapproved approved partially_approved rejected deleted

  • send_back_statusstring

    Send back status

    Possible values: unarrived partially_unarrived accepted partially_accepted refused unnecessary expired

  • reshipment_statusstring

    Reship status

    Possible values: unreshiped partially_unreshiped reshiped

  • exchange_statusstring

    Exchange status

    Possible values: unexchanged partially_unexchanged exchanged partially_exchanged rejected

  • refund_statusstring

    Refund status

    Possible values: unrefunded processing refunded rejected

  • payment_statusstring

    Payment status

    Possible values: unpaid processing paid

  • exchange_slip_creation_statusstring

    Exchange order issuance status

    Possible values: uncreated partiallycreated created

  • order_itemsarray of objectsrequired
    Show child attributes12
    • idintegerrequired

      Return item ID

    • original_item_idstringrequired

      Original item ID

    • skustringrequired

      Return item SKU

    • product_idstringrequired

      Returned product ID

    • image_linkstring

      Returned product image

    • is_deletedbooleanrequired

      Whether the returned product has been deleted

    • item_namestringrequired

      Returned product name

    • item_pricenumberrequired

      Returned product price

    • currencystringrequired

      Currency

    • item_resultobjectrequired
      Show child attributes13
      • idintegerrequired

        ID of the result for the returned item

      • approval_statusstring

        Approval status of the returned item

        Possible values: unapproved manually_approved automatically_approved manually_rejected automatically_rejected deleted

      • send_back_statusstring

        Send back status of the returned item

        Possible values: unarrived accepted refused unnecessary expired

      • reshipment_statusstring

        Reship status of the returned item

        Possible values: unreshiped reshiped

      • resolution_methodstring

        Resolution for the returned item

        Possible values: exchange refund repair

      • item_statusstring

        Inspection result of the returned item (the name of an inspection status configured by the store)

      • is_required_send_backbooleanrequired

        Whether the item needs to be sent back

      • is_customer_paybooleanrequired

        Whether the customer pays the return shipping

      • approval_reject_reasonstring

        Reason for rejecting approval

      • exchange_reject_reasonstring

        Reason for rejecting the exchange

      • memostring

        Memo

      • send_back_reject_reasonstring

        Reason for rejecting the send back

      • arrival_datestring(date)

        Date the sent-back item arrived

    • optionsarray of objects
      Show child attributes2
      • keystringrequired

        Option key of the returned item

      • valuestringrequired

        Option value of the returned item

    • exchange_itemobject
      Show child attributes10
      • idintegerrequired

        Exchange product ID

      • item_namestringrequired

        Exchange product name

      • optionsarray of objects
        Show child attributes2
        • keystringrequired

          Option key of the returned item

        • valuestringrequired

          Option value of the returned item

      • image_linkstring

        Exchange product image

      • skustringrequired

        Exchange product SKU

      • item_pricenumberrequired

        Exchange product price

      • currencystringrequired

        Currency

      • exchange_statusstring

        Exchange status

        Possible values: unexchanged exchanged rejected

      • exchange_slip_creation_statusstring

        Exchange order issuance status

        Possible values: uncreated created

      • external_order_codestring

        External exchange order code

  • customerobjectrequired
    Show child attributes10
    • idintegerrequired

      Customer ID

    • emailstringrequired

      Email address

    • return_countintegerrequired

      Number of returns

    • cancel_countintegerrequired

      Number of cancellations

    • last_namestringrequired

      Last name

    • first_namestringrequired

      First name

    • full_namestringrequired

      Full name

    • phone_numberstringrequired

      Phone number

    • is_consent_email_marketingbooleanrequired

      Whether marketing email is allowed

    • is_consent_sms_marketingbooleanrequired

      Whether marketing SMS is allowed

  • shipping_addressobject
    Show child attributes10
    • last_namestringrequired

      Last name

    • first_namestringrequired

      First name

    • full_namestringrequired

      Full name

    • phone_numberstringrequired

      Phone number

    • country_codestringrequired

      Country code. Currently always JP. This may change

    • postal_codestringrequired

      Postal code

    • provincestringrequired

      Prefecture

    • citystringrequired

      City

    • address1stringrequired

      Address line 1 (street and number)

    • address2stringrequired

      Address line 2 (building and room number)

  • billing_addressobject
    Show child attributes10
    • last_namestringrequired

      Last name

    • first_namestringrequired

      First name

    • full_namestringrequired

      Full name

    • phone_numberstringrequired

      Phone number

    • country_codestringrequired

      Country code. Currently always JP. This may change

    • postal_codestringrequired

      Postal code

    • provincestringrequired

      Prefecture

    • citystringrequired

      City

    • address1stringrequired

      Address line 1 (street and number)

    • address2stringrequired

      Address line 2 (building and room number)

  • refund_infoobject
    Show child attributes8
    • idintegerrequired

      Refund information ID

    • payment_methodstring

      Payment method

    • refund_methodstring

      Refund

      Possible values: API返金 PSP画面 銀行振込

    • refund_sub_totalnumberrequired

      Refund subtotal

    • taxnumberrequired

      Tax

    • suggested_amountnumberrequired

      Suggested refund amount

    • fixed_amountnumber

      Refunded amount

    • discount_and_expensesarray of objectsrequired
      Show child attributes4
      • idintegerrequired
      • suggested_amountnumber
      • fixed_amountnumber
      • discount_expenses_namestringrequired

        Name of the discount or fee setting

  • is_archivebooleanrequired

Responses

200 Return a 2xx status. The content of the body is not checked, so it can be empty

© Recustomer, Inc.