Skip to content

B2B Fulfilment Request Sandbox

This document describes the sandbox scenario for B2B fulfilment requests, as implemented in the B2bFulfilmentRequestSandbox class.

When a B2B fulfilment request is created, the sandbox automatically approves the request and creates an ASN entity.

Trigger:

  • default

Result:

  • Approval status: APPROVED
  • Provider reference: B2B-<fulfilment_request_id>
  • ASN entity created at asn/<fulfilment_request_id>-final with:
    • warehouse copied from the request
    • dispatch_date and scheduled_delivery_date copied from requested_delivery_date
    • delivery_reference: DEL-REF-<fulfilment_request_id>
    • tracking_number.number: TRACK-<fulfilment_request_id>
    • carrier_s_c_a_c: generated UUID
    • bill_of_lading: generated UUID
    • delivery_partners_reference: DPR-<fulfilment_request_id>
    • One logistics unit (PALLET, SSCC) containing all request lines mapped to ASN logistics unit line content
    • Delivery vehicle set to VAN with registration REG-<fulfilment_request_id>