Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
title Response

Status
colourGreen
title200
OK

Code Block
languagejson
{
    "order_id": "e887329b-237b-39b7-ad6f-7222e25aa06e",
    "transaction_id": "d3910180-2ae0-3f8c-8551-0078056adf05",
    "agent_id": 1,
    "created_by": 1,
    "gateway_id": null,
    "transaction_history_id": null,
    "tax_integration_id": null,
    "visible": true,
    "env": "test",
    "source": "admin",
    "external_gateway_id": "8b2e5cf1-a409-36eb-8236-02fb1eb20b29",
    "external_fraud_prevention_id": null,
    "external_tax_id": null,
    "type": "sale_approved",
    "method": null,
    "reference": null,
    "subtotal_pre_tax": 91.45,
    "discount": 0,
    "subtotal_discount_pre_tax": 91.45,
    "subtotal_taxes": 0,
    "subtotal": 91.45,
    "shipping_pre_tax": 54.36,
    "shipping_taxes": 0,
    "shipping": 54.36,
    "taxes": 0,
    "total": 145.81,
    "hard_cost": 91.45,
    "processing_fee": 0,
    "additional_fee": 0,
    "transaction_subtotal": 91.45,
    "transaction_shipping": 54.36,
    "description": null,
    "gateway_fees": [],
    "gateway_response": [],
    "antifraud_response": null,
    "referral_date": null,
    "refund_days": null,
    "approved_refund": null,
    "has_commissions": false,
    "date_at": "2024-08-14 09:21:41",
    "id": 4,
    "date": "2024-08-14",
    "recurrent": false,
    "subtotal_tax": 0,
    "shipping_tax": 0,
    "refunded_items": [
      {
        "id": "2fd49121-fa96-3e1a-b21a-6c67b1d72099",
        "item_id": "5ecc255b-a329-3cfd-8a67-ef8b23483608",
        "quantity_returned": 0,
        "quantity_refunded": 5,
        "subtotal": 524,
        "subtotal_tax": 0,
        "shipping": 0,
        "shipping_tax": 0,
        "total": 785,
        "created_at": "2024-08-14",
        "product": {
          "id": "c160d525-08c3-3d8b-8737-cfc1e29a14ad",
          "product_variation_id": "c95d333b-8dd8-30a5-8084-160a976094ef",
          "name": "Non in omnis laboriosam.",
          "type": "physical",
          "sku": "blanditiis",
          "upc": 14,
          "ean": 44,
          "isbn": 38,
          "metadata": null
        },
        "plan": null,
        "offer": null
      }
    ],
    "agent": {
      "id": "be798215-facf-3517-bc72-ae38fd98c3b9",
      "first_name": "Adaline",
      "last_name": "Kunde",
      "email": "narciso.dickinson@yahoo.com",
      "phones": [
        {
          "number": "+1-206-834-2536",
          "country": "ES",
          "default": true
        },
        {
          "number": "+1-878-450-3219",
          "country": "ST",
          "default": true
        }
      ]
    },
    "contact": {
      "id": "58875c44-52cd-3fd4-8017-9113e24631cc",
      "first_name": "Evelyn",
      "last_name": "Lynch",
      "email": "khuel@hotmail.com",
      "phones": [
        {
          "number": "+17723611127",
          "country": "BZ",
          "default": false
        },
        {
          "number": "+1-651-288-0297",
          "country": "CL",
          "default": false
        }
      ]
    },
    "address": {
      "id": "c0ef1e4e-658f-3188-9bed-4a80b7b47858",
      "first_name": "Trey",
      "last_name": "Nicolas",
      "country": "MY",
      "state": "OK",
      "city": "Lake Myah",
      "line": "2894 Wintheiser Inlet",
      "line2": "79611 Prosacco Trail Suite 971",
      "zip_code": "14986-8402",
      "references": null
    },
    "tracking": null,
    "payment_method": {
      "id": "c577e57e-c8c7-3adf-b30b-8ebead07f4c9",
      "type": "card",
      "brand": "visa",
      "last4": 4242,
      "exp_month": 6,
      "exp_year": 2030,
      "address": {
        "id": "2aa3293b-49ef-3bf3-a615-8573db977848",
        "first_name": "Watson",
        "last_name": "Quigley",
        "country": "LC",
        "state": "VT",
        "city": "Hunterton",
        "line": "430 Predovic Flats",
        "line2": "3325 Ward Cliffs Suite 157",
        "zip_code": "87920",
        "references": null
      }
    },
    "gateway": {
      "id": "d49ce1f8-b0b7-3db9-a52c-0b8f77c58f4b",
      "type": "est",
      "name": "Arielle Reichel"
    },
    "funnel": null,
    "page": null
  }

Actions

Create lead with customer note

Request

Status
colourBlue
titlePOST
/api/zapier/store-customer-order

...

Code Block
languagejson
{
  "id": "e7df6809-2917-4cd6-b368-2bb8080a3b8c",
  "env": "test",
  "coupon": null,
  "plan": {
    "id": "02f8c19b-527b-4100-9586-b6b399913724",
    "name": "Plan for Product Physical with Variations and Plans ",
    "period": "biweekly",
    "quantity": 1,
    "trial_days": 0,
    "type": "service_drip"
  },
  "product_variation_plan": {
    "id": "3c305af7-e10e-4868-8846-939151e7f59c",
    "unit_price": 571,
    "shipping_price": 14,
    "amount": 585
  },
  "current_plan_intervals": 1,
  "product": {
    "id": "ed2ba3c2-18fd-431b-8619-881c3c981901",
    "name": "Product Physical with Variations and Plans ",
    "type": "physical",
    "has_variations": true,
    "main_image": {
      "conversions": {
        "sm": "https://webassets.dev/img/products/physical.svg"
      },
      "url": "https://webassets.dev/img/products/physical.svg"
    }
  },
  "product_variation": {
    "id": "e357e7c5-4e01-40f8-92f5-89872e4c41f5",
    "name": "Color RED",
    "sku": "80mWJdRse3d",
    "main_image": null
  },
  "status": "canceled",
  "amount": 585,
  "on_grace_period": false,
  "period_started_at": "2024-07-30 00:00:00",
  "accessible_until": "2024-08-15 23:59:59",
  "next_payment_date": null,
  "created_at": "2024-07-30 14:26:46",
  "updated_at": "2024-07-30 14:39:02",
  "metadata": null
}

Create lead with order note

Request

Status
colourBlue
titlePOST
/api/zapier/store-customer-order

...