PATCH
/
api
/
orders
/
{id}
/
request-invoice
curl --request PATCH \
  --url https://api-v2.vitau.mx/api/orders/{id}/request-invoice/ \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '{
  "full_name": "<string>",
  "rfc": "<string>",
  "street": "<string>",
  "exterior_number": "<string>",
  "neighborhood": "<string>",
  "city": "<string>",
  "state": "<string>",
  "country": "<string>",
  "zipcode": "<string>",
  "latitude": "<string>",
  "longitude": "<string>",
  "email": "jsmith@example.com",
  "cfdi_use": "<string>",
  "fiscal_regime": "<string>"
}'
{
  "id": 123,
  "details": [
    {
      "id": 123,
      "product": 123,
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "price": "<string>",
      "subtotal": "<string>",
      "total": "<string>",
      "discount": "<string>",
      "iva": "<string>",
      "quantity": 16383,
      "order": 123
    }
  ],
  "patient": 123,
  "shipping": 123,
  "store": 123,
  "payment": 123,
  "paypal_agreement": 123,
  "payment_method": 123,
  "invoicing": 123,
  "coupon": "<string>",
  "shipping_method": 123,
  "prescriptions": [
    {
      "id": 123,
      "document": "<string>",
      "document_name": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "issue_date": "2023-12-25",
      "expiring_date": "2023-12-25",
      "is_verified": true,
      "patient": 123,
      "order": 123,
      "updated_by": 123
    }
  ],
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "deleted_at": "2023-11-07T05:31:56Z",
  "insurance_refund_status": "not_started",
  "order_status": "quoted",
  "payment_status": "unpaid",
  "rejection_reason": "<string>",
  "origin": "<string>",
  "subtotal": "<string>",
  "iva": "<string>",
  "shipping_price": "<string>",
  "shipping_discount": "<string>",
  "shipping_cost": "<string>",
  "discount": "<string>",
  "total": "<string>",
  "payment_date": "2023-11-07T05:31:56Z",
  "shipping_date": "2023-11-07T05:31:56Z",
  "expected_delivery_date": "2023-11-07T05:31:56Z",
  "max_delivery_date": "2023-11-07T05:31:56Z",
  "receiving_date": "2023-11-07T05:31:56Z",
  "folio": "<string>",
  "cfdi": "<string>",
  "external_payment_id": "<string>",
  "generated_by": 123,
  "updated_by": 123,
  "reminder": 123,
  "subscription": 123
}

Authorizations

X-API-KEY
string
header
required

Path Parameters

id
integer
required

A unique integer value identifying this order.

Body

application/json

Response

200 - application/json

The response is of type object.