Confirm delivery
  • 28 Feb 2024
  • 1 Minute to read
  • Contributors
  • Dark
    Light

Confirm delivery

  • Dark
    Light

Article summary

Parameters:

$data: An array containing necessary data for building the array request.

  • transactionId: The transaction ID associated with the order.

  • order_id: The ID of the order.

  • tracking_data: Data related to shipping tracking information.

Example:

use Stegback\Ratepay\Services\RatepayShippmentApi;
{
    'transactionId' => $transaction,
    'order_id' => '14065',
    'shipping_provider' => 'DSV',
    'tracking_number' => '123',
     'invoice_id' => '1213',
     'totalAmount' => '1204.75',
     'products' => $product,  // array
     'discountAmount' => '0', 
     'shippingAmount' => '0'

    $ratepay = new RatepayShippmentApi;
    $response = $ratepay->deliveryConfirm($term);
}
      1. $data['tracking_data']['shipping_provider']:

        • Description: Provider of the shipping service (e.g., UPS, FedEx).

        • Type: String

        • Example: 'UPS'

      2. $data['tracking_data']['tracking_number']:

        • Description: Tracking number associated with the shipment.

        • Type: String

        • Example: 'ABC123456789'

      3. $data['tracking_data']['invoice_id']:

        • Description: ID of the invoice related to the shipment.

        • Type: String

        • Example: 'INV789456'

  1. sample product array should be like this:

"product": [
      [
        "id": "1",
        "quantity": "2",
        "cost_per_item": "100",
        "product_name": "Product 1"
      ],
    ],


Was this article helpful?