/store-checkout-drafts-patch-one¶
Summary¶
Source repository:
jef-systems/jef-store-backendSource SHA:
8268dc359b63dc3e4d3c8fbcf5f91c0628e40da2Source run id:
28375649454Lambda function:
jef-store-checkout-drafts-patch-oneHTTP method:
PATCHAPI path:
/store-checkout-drafts-patch-oneEndpoint URL:
https://dqo3268ty9.execute-api.ap-southeast-1.amazonaws.com/prod/store-checkout-drafts-patch-onePayload mode:
json-body
Description¶
|
jef-store-checkout-drafts-patch-one Logical ID: jef-store:jef-store-checkout-drafts:patch-one Order Number: 002 |
|
jef-store |
|
patch-one |
|
PATCH |
|
SYNCHRONOUS |
|
/store-checkout-drafts-patch-one Endpoint Name: jef-store-checkout-drafts-patch-one |
|
jef-store-checkout-drafts |
|
checkout_draft_id |
API Gateway Response¶
|
Lambda proxy statusCode |
|
Lambda response reflects commit success or failure. |
Payload Example¶
|
3689a227-27f1-435f-a307-e4335508b4d4 |
|
2b8b5a00-d7ed-4668-8060-d32e01ef06e5 |
Payload Schema¶
{
"type": "object",
"additionalProperties": "False",
"payload_mode": "parent-plus-children-wrapper",
"allow_children_wrapper": "True",
"children_wrapper_field": "children",
"allow_batch": "False",
"table": "jef-store-checkout-drafts",
"primary_key": "checkout_draft_id",
"required[0]": "checkout_draft_id",
"properties.checkout_draft_id.field": "checkout_draft_id",
"properties.checkout_draft_id.type": "S",
"properties.checkout_draft_id.required": "False",
"properties.checkout_draft_id.source_required": "True",
"properties.checkout_draft_id.server_generated": "True",
"properties.checkout_draft_id.autogenerated": "False",
"properties.checkout_draft_id.frontend_autocomputed": "False",
"properties.checkout_draft_id.format": "uuidv4",
"properties.checkout_draft_id.regex": "^[1-9a-fA-F][0-9a-fA-F]{7}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
"properties.cart_id.field": "cart_id",
"properties.cart_id.type": "S",
"properties.cart_id.required": "True",
"properties.cart_id.source_required": "True",
"properties.cart_id.server_generated": "True",
"properties.cart_id.autogenerated": "False",
"properties.cart_id.frontend_autocomputed": "False",
"properties.cart_id.format": "uuidv4",
"properties.cart_id.regex": "^[1-9a-fA-F][0-9a-fA-F]{7}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
"properties.entity_number.field": "entity_number",
"properties.entity_number.type": "S",
"properties.entity_number.required": "True",
"properties.entity_number.source_required": "True",
"properties.entity_number.server_generated": "True",
"properties.entity_number.autogenerated": "False",
"properties.entity_number.frontend_autocomputed": "False",
"properties.entity_number.format": "uuidv4",
"properties.entity_number.regex": "^[1-9a-fA-F][0-9a-fA-F]{7}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
"properties.employee_number.field": "employee_number",
"properties.employee_number.type": "S",
"properties.employee_number.required": "True",
"properties.employee_number.source_required": "True",
"properties.employee_number.server_generated": "True",
"properties.employee_number.autogenerated": "False",
"properties.employee_number.frontend_autocomputed": "False",
"properties.employee_number.format": "uuidv4",
"properties.employee_number.regex": "^[1-9a-fA-F][0-9a-fA-F]{7}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
"properties.customer_number.field": "customer_number",
"properties.customer_number.type": "S",
"properties.customer_number.required": "True",
"properties.customer_number.source_required": "True",
"properties.customer_number.server_generated": "True",
"properties.customer_number.autogenerated": "False",
"properties.customer_number.frontend_autocomputed": "False",
"properties.customer_number.format": "uuidv4",
"properties.customer_number.regex": "^[1-9a-fA-F][0-9a-fA-F]{7}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
"properties.customer_name.field": "customer_name",
"properties.customer_name.type": "S",
"properties.customer_name.required": "True",
"properties.customer_name.source_required": "True",
"properties.customer_name.server_generated": "False",
"properties.customer_name.autogenerated": "False",
"properties.customer_name.frontend_autocomputed": "False",
"properties.customer_name.regex": "^[A-Za-z0-9 ._-]{1,100}$",
"properties.phone.field": "phone",
"properties.phone.type": "S",
"properties.phone.required": "True",
"properties.phone.source_required": "True",
"properties.phone.server_generated": "False",
"properties.phone.autogenerated": "False",
"properties.phone.frontend_autocomputed": "False",
"properties.phone.regex": "^[0-9+() .-]{0,30}$",
"properties.email.field": "email",
"properties.email.type": "S",
"properties.email.required": "True",
"properties.email.source_required": "True",
"properties.email.server_generated": "False",
"properties.email.autogenerated": "False",
"properties.email.frontend_autocomputed": "False",
"properties.email.regex": "^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$",
"properties.delivery_mode.field": "delivery_mode",
"properties.delivery_mode.type": "S",
"properties.delivery_mode.required": "True",
"properties.delivery_mode.source_required": "True",
"properties.delivery_mode.server_generated": "False",
"properties.delivery_mode.autogenerated": "False",
"properties.delivery_mode.frontend_autocomputed": "False",
"properties.delivery_mode.regex": "^[A-Za-z0-9_-]{1,64}$",
"properties.payment_method.field": "payment_method",
"properties.payment_method.type": "S",
"properties.payment_method.required": "True",
"properties.payment_method.source_required": "True",
"properties.payment_method.server_generated": "False",
"properties.payment_method.autogenerated": "False",
"properties.payment_method.frontend_autocomputed": "False",
"properties.payment_method.regex": "^[A-Za-z0-9_-]{1,64}$",
"properties.receipt_mode.field": "receipt_mode",
"properties.receipt_mode.type": "S",
"properties.receipt_mode.required": "True",
"properties.receipt_mode.source_required": "True",
"properties.receipt_mode.server_generated": "False",
"properties.receipt_mode.autogenerated": "False",
"properties.receipt_mode.frontend_autocomputed": "False",
"properties.receipt_mode.regex": "^[A-Za-z0-9_-]{1,64}$",
"properties.branch_pickup_name.field": "branch_pickup_name",
"properties.branch_pickup_name.type": "S",
"properties.branch_pickup_name.required": "True",
"properties.branch_pickup_name.source_required": "True",
"properties.branch_pickup_name.server_generated": "False",
"properties.branch_pickup_name.autogenerated": "False",
"properties.branch_pickup_name.frontend_autocomputed": "False",
"properties.branch_pickup_name.regex": "^[A-Za-z0-9 ._-]{1,100}$",
"properties.full_address.field": "full_address",
"properties.full_address.type": "S",
"properties.full_address.required": "True",
"properties.full_address.source_required": "True",
"properties.full_address.server_generated": "False",
"properties.full_address.autogenerated": "False",
"properties.full_address.frontend_autocomputed": "False",
"properties.full_address.regex": "^.{0,500}$",
"properties.delivery_instructions.field": "delivery_instructions",
"properties.delivery_instructions.type": "S",
"properties.delivery_instructions.required": "True",
"properties.delivery_instructions.source_required": "True",
"properties.delivery_instructions.server_generated": "False",
"properties.delivery_instructions.autogenerated": "False",
"properties.delivery_instructions.frontend_autocomputed": "False",
"properties.delivery_instructions.regex": "^.{0,500}$",
"properties.internal_note.field": "internal_note",
"properties.internal_note.type": "S",
"properties.internal_note.required": "True",
"properties.internal_note.source_required": "True",
"properties.internal_note.server_generated": "False",
"properties.internal_note.autogenerated": "False",
"properties.internal_note.frontend_autocomputed": "False",
"properties.internal_note.regex": "^.{0,500}$",
"properties.call_before_delivery.field": "call_before_delivery",
"properties.call_before_delivery.type": "BOOL",
"properties.call_before_delivery.required": "True",
"properties.call_before_delivery.source_required": "True",
"properties.call_before_delivery.server_generated": "False",
"properties.call_before_delivery.autogenerated": "False",
"properties.call_before_delivery.frontend_autocomputed": "False",
"properties.call_before_delivery.regex": "^(true|false)$",
"properties.subtotal.field": "subtotal",
"properties.subtotal.type": "N",
"properties.subtotal.required": "True",
"properties.subtotal.source_required": "True",
"properties.subtotal.server_generated": "False",
"properties.subtotal.autogenerated": "False",
"properties.subtotal.frontend_autocomputed": "False",
"properties.subtotal.regex": "^-?\\d+(\\.\\d+)?$",
"properties.shipping_fee.field": "shipping_fee",
"properties.shipping_fee.type": "N",
"properties.shipping_fee.required": "True",
"properties.shipping_fee.source_required": "True",
"properties.shipping_fee.server_generated": "False",
"properties.shipping_fee.autogenerated": "False",
"properties.shipping_fee.frontend_autocomputed": "False",
"properties.shipping_fee.regex": "^-?\\d+(\\.\\d+)?$",
"properties.discount.field": "discount",
"properties.discount.type": "N",
"properties.discount.required": "True",
"properties.discount.source_required": "True",
"properties.discount.server_generated": "False",
"properties.discount.autogenerated": "False",
"properties.discount.frontend_autocomputed": "False",
"properties.discount.regex": "^-?\\d+(\\.\\d+)?$",
"properties.grand_total.field": "grand_total",
"properties.grand_total.type": "N",
"properties.grand_total.required": "True",
"properties.grand_total.source_required": "True",
"properties.grand_total.server_generated": "False",
"properties.grand_total.autogenerated": "False",
"properties.grand_total.frontend_autocomputed": "False",
"properties.grand_total.regex": "^-?\\d+(\\.\\d+)?$",
"properties.draft_status.field": "draft_status",
"properties.draft_status.type": "S",
"properties.draft_status.required": "True",
"properties.draft_status.source_required": "True",
"properties.draft_status.server_generated": "False",
"properties.draft_status.autogenerated": "False",
"properties.draft_status.frontend_autocomputed": "False",
"properties.draft_status.regex": "^[A-Za-z0-9_-]{1,64}$",
"properties.is_active.field": "is_active",
"properties.is_active.type": "BOOL",
"properties.is_active.required": "False",
"properties.is_active.source_required": "True",
"properties.is_active.server_generated": "True",
"properties.is_active.autogenerated": "False",
"properties.is_active.frontend_autocomputed": "False",
"properties.is_active.regex": "^(true|false)$",
"properties.version.field": "version",
"properties.version.type": "N",
"properties.version.required": "True",
"properties.version.source_required": "True",
"properties.version.server_generated": "False",
"properties.version.autogenerated": "False",
"properties.version.frontend_autocomputed": "False",
"properties.version.regex": "^\\d+$",
"children[0].parent_table": "jef-store-checkout-drafts",
"children[0].child_table": "jef-store-checkout-draft-items",
"children[0].parent_key": "checkout_draft_id",
"children[0].child_foreign_key": "checkout_draft_id",
"children[0].child_index_name": "gsi_1",
"children[0].child_index_key": "gsi_1_pk",
"children[0].aliases[0]": "jef-store-checkout-draft-items",
"children[0].aliases[1]": "checkout-draft-items",
"children[0].aliases[2]": "store-checkout-draft-items",
"children[0].aliases[3]": "jef_store_checkout_draft_items",
"children[0].aliases[4]": "checkout_draft_items",
"children[0].aliases[5]": "store_checkout_draft_items",
"children[0].aliases[6]": "items",
"patch.semantic_patch_version": "patch-ignore-immutable-v2",
"patch.allowed_fields[0]": "checkout_draft_id",
"patch.allowed_fields[1]": "cart_id",
"patch.allowed_fields[2]": "entity_number",
"patch.allowed_fields[3]": "employee_number",
"patch.allowed_fields[4]": "customer_number",
"patch.allowed_fields[5]": "customer_name",
"patch.allowed_fields[6]": "phone",
"patch.allowed_fields[7]": "email",
"patch.allowed_fields[8]": "delivery_mode",
"patch.allowed_fields[9]": "payment_method",
"patch.allowed_fields[10]": "receipt_mode",
"patch.allowed_fields[11]": "branch_pickup_name",
"patch.allowed_fields[12]": "full_address",
"patch.allowed_fields[13]": "delivery_instructions",
"patch.allowed_fields[14]": "internal_note",
"patch.allowed_fields[15]": "call_before_delivery",
"patch.allowed_fields[16]": "subtotal",
"patch.allowed_fields[17]": "shipping_fee",
"patch.allowed_fields[18]": "discount",
"patch.allowed_fields[19]": "grand_total",
"patch.allowed_fields[20]": "draft_status",
"patch.allowed_fields[21]": "is_active",
"patch.allowed_fields[22]": "version",
"patch.ignored_fields[0]": "created",
"patch.ignored_fields[1]": "created_at",
"patch.ignored_fields[2]": "deleted_at",
"patch.ignored_fields[3]": "idempotency_key",
"patch.ignored_fields[4]": "is_deleted",
"patch.ignored_fields[5]": "schema_version",
"patch.ignored_fields[6]": "updated",
"patch.ignored_fields[7]": "updated_at",
"patch.editable_attributes.checkout_draft_id.field": "checkout_draft_id",
"patch.editable_attributes.checkout_draft_id.type": "S",
"patch.editable_attributes.checkout_draft_id.required": "False",
"patch.editable_attributes.checkout_draft_id.source_required": "True",
"patch.editable_attributes.checkout_draft_id.server_generated": "True",
"patch.editable_attributes.checkout_draft_id.autogenerated": "False",
"patch.editable_attributes.checkout_draft_id.frontend_autocomputed": "False",
"patch.editable_attributes.checkout_draft_id.format": "uuidv4",
"patch.editable_attributes.checkout_draft_id.regex": "^[1-9a-fA-F][0-9a-fA-F]{7}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
"patch.editable_attributes.cart_id.field": "cart_id",
"patch.editable_attributes.cart_id.type": "S",
"patch.editable_attributes.cart_id.required": "True",
"patch.editable_attributes.cart_id.source_required": "True",
"patch.editable_attributes.cart_id.server_generated": "True",
"patch.editable_attributes.cart_id.autogenerated": "False",
"patch.editable_attributes.cart_id.frontend_autocomputed": "False",
"patch.editable_attributes.cart_id.format": "uuidv4",
"patch.editable_attributes.cart_id.regex": "^[1-9a-fA-F][0-9a-fA-F]{7}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
"patch.editable_attributes.entity_number.field": "entity_number",
"patch.editable_attributes.entity_number.type": "S",
"patch.editable_attributes.entity_number.required": "True",
"patch.editable_attributes.entity_number.source_required": "True",
"patch.editable_attributes.entity_number.server_generated": "True",
"patch.editable_attributes.entity_number.autogenerated": "False",
"patch.editable_attributes.entity_number.frontend_autocomputed": "False",
"patch.editable_attributes.entity_number.format": "uuidv4",
"patch.editable_attributes.entity_number.regex": "^[1-9a-fA-F][0-9a-fA-F]{7}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
"patch.editable_attributes.employee_number.field": "employee_number",
"patch.editable_attributes.employee_number.type": "S",
"patch.editable_attributes.employee_number.required": "True",
"patch.editable_attributes.employee_number.source_required": "True",
"patch.editable_attributes.employee_number.server_generated": "True",
"patch.editable_attributes.employee_number.autogenerated": "False",
"patch.editable_attributes.employee_number.frontend_autocomputed": "False",
"patch.editable_attributes.employee_number.format": "uuidv4",
"patch.editable_attributes.employee_number.regex": "^[1-9a-fA-F][0-9a-fA-F]{7}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
"patch.editable_attributes.customer_number.field": "customer_number",
"patch.editable_attributes.customer_number.type": "S",
"patch.editable_attributes.customer_number.required": "True",
"patch.editable_attributes.customer_number.source_required": "True",
"patch.editable_attributes.customer_number.server_generated": "True",
"patch.editable_attributes.customer_number.autogenerated": "False",
"patch.editable_attributes.customer_number.frontend_autocomputed": "False",
"patch.editable_attributes.customer_number.format": "uuidv4",
"patch.editable_attributes.customer_number.regex": "^[1-9a-fA-F][0-9a-fA-F]{7}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
"patch.editable_attributes.customer_name.field": "customer_name",
"patch.editable_attributes.customer_name.type": "S",
"patch.editable_attributes.customer_name.required": "True",
"patch.editable_attributes.customer_name.source_required": "True",
"patch.editable_attributes.customer_name.server_generated": "False",
"patch.editable_attributes.customer_name.autogenerated": "False",
"patch.editable_attributes.customer_name.frontend_autocomputed": "False",
"patch.editable_attributes.customer_name.regex": "^[A-Za-z0-9 ._-]{1,100}$",
"patch.editable_attributes.phone.field": "phone",
"patch.editable_attributes.phone.type": "S",
"patch.editable_attributes.phone.required": "True",
"patch.editable_attributes.phone.source_required": "True",
"patch.editable_attributes.phone.server_generated": "False",
"patch.editable_attributes.phone.autogenerated": "False",
"patch.editable_attributes.phone.frontend_autocomputed": "False",
"patch.editable_attributes.phone.regex": "^[0-9+() .-]{0,30}$",
"patch.editable_attributes.email.field": "email",
"patch.editable_attributes.email.type": "S",
"patch.editable_attributes.email.required": "True",
"patch.editable_attributes.email.source_required": "True",
"patch.editable_attributes.email.server_generated": "False",
"patch.editable_attributes.email.autogenerated": "False",
"patch.editable_attributes.email.frontend_autocomputed": "False",
"patch.editable_attributes.email.regex": "^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$",
"patch.editable_attributes.delivery_mode.field": "delivery_mode",
"patch.editable_attributes.delivery_mode.type": "S",
"patch.editable_attributes.delivery_mode.required": "True",
"patch.editable_attributes.delivery_mode.source_required": "True",
"patch.editable_attributes.delivery_mode.server_generated": "False",
"patch.editable_attributes.delivery_mode.autogenerated": "False",
"patch.editable_attributes.delivery_mode.frontend_autocomputed": "False",
"patch.editable_attributes.delivery_mode.regex": "^[A-Za-z0-9_-]{1,64}$",
"patch.editable_attributes.payment_method.field": "payment_method",
"patch.editable_attributes.payment_method.type": "S",
"patch.editable_attributes.payment_method.required": "True",
"patch.editable_attributes.payment_method.source_required": "True",
"patch.editable_attributes.payment_method.server_generated": "False",
"patch.editable_attributes.payment_method.autogenerated": "False",
"patch.editable_attributes.payment_method.frontend_autocomputed": "False",
"patch.editable_attributes.payment_method.regex": "^[A-Za-z0-9_-]{1,64}$",
"patch.editable_attributes.receipt_mode.field": "receipt_mode",
"patch.editable_attributes.receipt_mode.type": "S",
"patch.editable_attributes.receipt_mode.required": "True",
"patch.editable_attributes.receipt_mode.source_required": "True",
"patch.editable_attributes.receipt_mode.server_generated": "False",
"patch.editable_attributes.receipt_mode.autogenerated": "False",
"patch.editable_attributes.receipt_mode.frontend_autocomputed": "False",
"patch.editable_attributes.receipt_mode.regex": "^[A-Za-z0-9_-]{1,64}$",
"patch.editable_attributes.branch_pickup_name.field": "branch_pickup_name",
"patch.editable_attributes.branch_pickup_name.type": "S",
"patch.editable_attributes.branch_pickup_name.required": "True",
"patch.editable_attributes.branch_pickup_name.source_required": "True",
"patch.editable_attributes.branch_pickup_name.server_generated": "False",
"patch.editable_attributes.branch_pickup_name.autogenerated": "False",
"patch.editable_attributes.branch_pickup_name.frontend_autocomputed": "False",
"patch.editable_attributes.branch_pickup_name.regex": "^[A-Za-z0-9 ._-]{1,100}$",
"patch.editable_attributes.full_address.field": "full_address",
"patch.editable_attributes.full_address.type": "S",
"patch.editable_attributes.full_address.required": "True",
"patch.editable_attributes.full_address.source_required": "True",
"patch.editable_attributes.full_address.server_generated": "False",
"patch.editable_attributes.full_address.autogenerated": "False",
"patch.editable_attributes.full_address.frontend_autocomputed": "False",
"patch.editable_attributes.full_address.regex": "^.{0,500}$",
"patch.editable_attributes.delivery_instructions.field": "delivery_instructions",
"patch.editable_attributes.delivery_instructions.type": "S",
"patch.editable_attributes.delivery_instructions.required": "True",
"patch.editable_attributes.delivery_instructions.source_required": "True",
"patch.editable_attributes.delivery_instructions.server_generated": "False",
"patch.editable_attributes.delivery_instructions.autogenerated": "False",
"patch.editable_attributes.delivery_instructions.frontend_autocomputed": "False",
"patch.editable_attributes.delivery_instructions.regex": "^.{0,500}$",
"patch.editable_attributes.internal_note.field": "internal_note",
"patch.editable_attributes.internal_note.type": "S",
"patch.editable_attributes.internal_note.required": "True",
"patch.editable_attributes.internal_note.source_required": "True",
"patch.editable_attributes.internal_note.server_generated": "False",
"patch.editable_attributes.internal_note.autogenerated": "False",
"patch.editable_attributes.internal_note.frontend_autocomputed": "False",
"patch.editable_attributes.internal_note.regex": "^.{0,500}$",
"patch.editable_attributes.call_before_delivery.field": "call_before_delivery",
"patch.editable_attributes.call_before_delivery.type": "BOOL",
"patch.editable_attributes.call_before_delivery.required": "True",
"patch.editable_attributes.call_before_delivery.source_required": "True",
"patch.editable_attributes.call_before_delivery.server_generated": "False",
"patch.editable_attributes.call_before_delivery.autogenerated": "False",
"patch.editable_attributes.call_before_delivery.frontend_autocomputed": "False",
"patch.editable_attributes.call_before_delivery.regex": "^(true|false)$",
"patch.editable_attributes.subtotal.field": "subtotal",
"patch.editable_attributes.subtotal.type": "N",
"patch.editable_attributes.subtotal.required": "True",
"patch.editable_attributes.subtotal.source_required": "True",
"patch.editable_attributes.subtotal.server_generated": "False",
"patch.editable_attributes.subtotal.autogenerated": "False",
"patch.editable_attributes.subtotal.frontend_autocomputed": "False",
"patch.editable_attributes.subtotal.regex": "^-?\\d+(\\.\\d+)?$",
"patch.editable_attributes.shipping_fee.field": "shipping_fee",
"patch.editable_attributes.shipping_fee.type": "N",
"patch.editable_attributes.shipping_fee.required": "True",
"patch.editable_attributes.shipping_fee.source_required": "True",
"patch.editable_attributes.shipping_fee.server_generated": "False",
"patch.editable_attributes.shipping_fee.autogenerated": "False",
"patch.editable_attributes.shipping_fee.frontend_autocomputed": "False",
"patch.editable_attributes.shipping_fee.regex": "^-?\\d+(\\.\\d+)?$",
"patch.editable_attributes.discount.field": "discount",
"patch.editable_attributes.discount.type": "N",
"patch.editable_attributes.discount.required": "True",
"patch.editable_attributes.discount.source_required": "True",
"patch.editable_attributes.discount.server_generated": "False",
"patch.editable_attributes.discount.autogenerated": "False",
"patch.editable_attributes.discount.frontend_autocomputed": "False",
"patch.editable_attributes.discount.regex": "^-?\\d+(\\.\\d+)?$",
"patch.editable_attributes.grand_total.field": "grand_total",
"patch.editable_attributes.grand_total.type": "N",
"patch.editable_attributes.grand_total.required": "True",
"patch.editable_attributes.grand_total.source_required": "True",
"patch.editable_attributes.grand_total.server_generated": "False",
"patch.editable_attributes.grand_total.autogenerated": "False",
"patch.editable_attributes.grand_total.frontend_autocomputed": "False",
"patch.editable_attributes.grand_total.regex": "^-?\\d+(\\.\\d+)?$",
"patch.editable_attributes.draft_status.field": "draft_status",
"patch.editable_attributes.draft_status.type": "S",
"patch.editable_attributes.draft_status.required": "True",
"patch.editable_attributes.draft_status.source_required": "True",
"patch.editable_attributes.draft_status.server_generated": "False",
"patch.editable_attributes.draft_status.autogenerated": "False",
"patch.editable_attributes.draft_status.frontend_autocomputed": "False",
"patch.editable_attributes.draft_status.regex": "^[A-Za-z0-9_-]{1,64}$",
"patch.editable_attributes.is_active.field": "is_active",
"patch.editable_attributes.is_active.type": "BOOL",
"patch.editable_attributes.is_active.required": "False",
"patch.editable_attributes.is_active.source_required": "True",
"patch.editable_attributes.is_active.server_generated": "True",
"patch.editable_attributes.is_active.autogenerated": "False",
"patch.editable_attributes.is_active.frontend_autocomputed": "False",
"patch.editable_attributes.is_active.regex": "^(true|false)$",
"patch.editable_attributes.version.field": "version",
"patch.editable_attributes.version.type": "N",
"patch.editable_attributes.version.required": "True",
"patch.editable_attributes.version.source_required": "True",
"patch.editable_attributes.version.server_generated": "False",
"patch.editable_attributes.version.autogenerated": "False",
"patch.editable_attributes.version.frontend_autocomputed": "False",
"patch.editable_attributes.version.regex": "^\\d+$",
"root.type": "object",
"root.attributes.checkout_draft_id.field": "checkout_draft_id",
"root.attributes.checkout_draft_id.type": "S",
"root.attributes.checkout_draft_id.required": "False",
"root.attributes.checkout_draft_id.source_required": "True",
"root.attributes.checkout_draft_id.server_generated": "True",
"root.attributes.checkout_draft_id.autogenerated": "False",
"root.attributes.checkout_draft_id.frontend_autocomputed": "False",
"root.attributes.checkout_draft_id.format": "uuidv4",
"root.attributes.checkout_draft_id.regex": "^[1-9a-fA-F][0-9a-fA-F]{7}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
"root.attributes.cart_id.field": "cart_id",
"root.attributes.cart_id.type": "S",
"root.attributes.cart_id.required": "True",
"root.attributes.cart_id.source_required": "True",
"root.attributes.cart_id.server_generated": "True",
"root.attributes.cart_id.autogenerated": "False",
"root.attributes.cart_id.frontend_autocomputed": "False",
"root.attributes.cart_id.format": "uuidv4",
"root.attributes.cart_id.regex": "^[1-9a-fA-F][0-9a-fA-F]{7}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
"root.attributes.entity_number.field": "entity_number",
"root.attributes.entity_number.type": "S",
"root.attributes.entity_number.required": "True",
"root.attributes.entity_number.source_required": "True",
"root.attributes.entity_number.server_generated": "True",
"root.attributes.entity_number.autogenerated": "False",
"root.attributes.entity_number.frontend_autocomputed": "False",
"root.attributes.entity_number.format": "uuidv4",
"root.attributes.entity_number.regex": "^[1-9a-fA-F][0-9a-fA-F]{7}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
"root.attributes.employee_number.field": "employee_number",
"root.attributes.employee_number.type": "S",
"root.attributes.employee_number.required": "True",
"root.attributes.employee_number.source_required": "True",
"root.attributes.employee_number.server_generated": "True",
"root.attributes.employee_number.autogenerated": "False",
"root.attributes.employee_number.frontend_autocomputed": "False",
"root.attributes.employee_number.format": "uuidv4",
"root.attributes.employee_number.regex": "^[1-9a-fA-F][0-9a-fA-F]{7}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
"root.attributes.customer_number.field": "customer_number",
"root.attributes.customer_number.type": "S",
"root.attributes.customer_number.required": "True",
"root.attributes.customer_number.source_required": "True",
"root.attributes.customer_number.server_generated": "True",
"root.attributes.customer_number.autogenerated": "False",
"root.attributes.customer_number.frontend_autocomputed": "False",
"root.attributes.customer_number.format": "uuidv4",
"root.attributes.customer_number.regex": "^[1-9a-fA-F][0-9a-fA-F]{7}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
"root.attributes.customer_name.field": "customer_name",
"root.attributes.customer_name.type": "S",
"root.attributes.customer_name.required": "True",
"root.attributes.customer_name.source_required": "True",
"root.attributes.customer_name.server_generated": "False",
"root.attributes.customer_name.autogenerated": "False",
"root.attributes.customer_name.frontend_autocomputed": "False",
"root.attributes.customer_name.regex": "^[A-Za-z0-9 ._-]{1,100}$",
"root.attributes.phone.field": "phone",
"root.attributes.phone.type": "S",
"root.attributes.phone.required": "True",
"root.attributes.phone.source_required": "True",
"root.attributes.phone.server_generated": "False",
"root.attributes.phone.autogenerated": "False",
"root.attributes.phone.frontend_autocomputed": "False",
"root.attributes.phone.regex": "^[0-9+() .-]{0,30}$",
"root.attributes.email.field": "email",
"root.attributes.email.type": "S",
"root.attributes.email.required": "True",
"root.attributes.email.source_required": "True",
"root.attributes.email.server_generated": "False",
"root.attributes.email.autogenerated": "False",
"root.attributes.email.frontend_autocomputed": "False",
"root.attributes.email.regex": "^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$",
"root.attributes.delivery_mode.field": "delivery_mode",
"root.attributes.delivery_mode.type": "S",
"root.attributes.delivery_mode.required": "True",
"root.attributes.delivery_mode.source_required": "True",
"root.attributes.delivery_mode.server_generated": "False",
"root.attributes.delivery_mode.autogenerated": "False",
"root.attributes.delivery_mode.frontend_autocomputed": "False",
"root.attributes.delivery_mode.regex": "^[A-Za-z0-9_-]{1,64}$",
"root.attributes.payment_method.field": "payment_method",
"root.attributes.payment_method.type": "S",
"root.attributes.payment_method.required": "True",
"root.attributes.payment_method.source_required": "True",
"root.attributes.payment_method.server_generated": "False",
"root.attributes.payment_method.autogenerated": "False",
"root.attributes.payment_method.frontend_autocomputed": "False",
"root.attributes.payment_method.regex": "^[A-Za-z0-9_-]{1,64}$",
"root.attributes.receipt_mode.field": "receipt_mode",
"root.attributes.receipt_mode.type": "S",
"root.attributes.receipt_mode.required": "True",
"root.attributes.receipt_mode.source_required": "True",
"root.attributes.receipt_mode.server_generated": "False",
"root.attributes.receipt_mode.autogenerated": "False",
"root.attributes.receipt_mode.frontend_autocomputed": "False",
"root.attributes.receipt_mode.regex": "^[A-Za-z0-9_-]{1,64}$",
"root.attributes.branch_pickup_name.field": "branch_pickup_name",
"root.attributes.branch_pickup_name.type": "S",
"root.attributes.branch_pickup_name.required": "True",
"root.attributes.branch_pickup_name.source_required": "True",
"root.attributes.branch_pickup_name.server_generated": "False",
"root.attributes.branch_pickup_name.autogenerated": "False",
"root.attributes.branch_pickup_name.frontend_autocomputed": "False",
"root.attributes.branch_pickup_name.regex": "^[A-Za-z0-9 ._-]{1,100}$",
"root.attributes.full_address.field": "full_address",
"root.attributes.full_address.type": "S",
"root.attributes.full_address.required": "True",
"root.attributes.full_address.source_required": "True",
"root.attributes.full_address.server_generated": "False",
"root.attributes.full_address.autogenerated": "False",
"root.attributes.full_address.frontend_autocomputed": "False",
"root.attributes.full_address.regex": "^.{0,500}$",
"root.attributes.delivery_instructions.field": "delivery_instructions",
"root.attributes.delivery_instructions.type": "S",
"root.attributes.delivery_instructions.required": "True",
"root.attributes.delivery_instructions.source_required": "True",
"root.attributes.delivery_instructions.server_generated": "False",
"root.attributes.delivery_instructions.autogenerated": "False",
"root.attributes.delivery_instructions.frontend_autocomputed": "False",
"root.attributes.delivery_instructions.regex": "^.{0,500}$",
"root.attributes.internal_note.field": "internal_note",
"root.attributes.internal_note.type": "S",
"root.attributes.internal_note.required": "True",
"root.attributes.internal_note.source_required": "True",
"root.attributes.internal_note.server_generated": "False",
"root.attributes.internal_note.autogenerated": "False",
"root.attributes.internal_note.frontend_autocomputed": "False",
"root.attributes.internal_note.regex": "^.{0,500}$",
"root.attributes.call_before_delivery.field": "call_before_delivery",
"root.attributes.call_before_delivery.type": "BOOL",
"root.attributes.call_before_delivery.required": "True",
"root.attributes.call_before_delivery.source_required": "True",
"root.attributes.call_before_delivery.server_generated": "False",
"root.attributes.call_before_delivery.autogenerated": "False",
"root.attributes.call_before_delivery.frontend_autocomputed": "False",
"root.attributes.call_before_delivery.regex": "^(true|false)$",
"root.attributes.subtotal.field": "subtotal",
"root.attributes.subtotal.type": "N",
"root.attributes.subtotal.required": "True",
"root.attributes.subtotal.source_required": "True",
"root.attributes.subtotal.server_generated": "False",
"root.attributes.subtotal.autogenerated": "False",
"root.attributes.subtotal.frontend_autocomputed": "False",
"root.attributes.subtotal.regex": "^-?\\d+(\\.\\d+)?$",
"root.attributes.shipping_fee.field": "shipping_fee",
"root.attributes.shipping_fee.type": "N",
"root.attributes.shipping_fee.required": "True",
"root.attributes.shipping_fee.source_required": "True",
"root.attributes.shipping_fee.server_generated": "False",
"root.attributes.shipping_fee.autogenerated": "False",
"root.attributes.shipping_fee.frontend_autocomputed": "False",
"root.attributes.shipping_fee.regex": "^-?\\d+(\\.\\d+)?$",
"root.attributes.discount.field": "discount",
"root.attributes.discount.type": "N",
"root.attributes.discount.required": "True",
"root.attributes.discount.source_required": "True",
"root.attributes.discount.server_generated": "False",
"root.attributes.discount.autogenerated": "False",
"root.attributes.discount.frontend_autocomputed": "False",
"root.attributes.discount.regex": "^-?\\d+(\\.\\d+)?$",
"root.attributes.grand_total.field": "grand_total",
"root.attributes.grand_total.type": "N",
"root.attributes.grand_total.required": "True",
"root.attributes.grand_total.source_required": "True",
"root.attributes.grand_total.server_generated": "False",
"root.attributes.grand_total.autogenerated": "False",
"root.attributes.grand_total.frontend_autocomputed": "False",
"root.attributes.grand_total.regex": "^-?\\d+(\\.\\d+)?$",
"root.attributes.draft_status.field": "draft_status",
"root.attributes.draft_status.type": "S",
"root.attributes.draft_status.required": "True",
"root.attributes.draft_status.source_required": "True",
"root.attributes.draft_status.server_generated": "False",
"root.attributes.draft_status.autogenerated": "False",
"root.attributes.draft_status.frontend_autocomputed": "False",
"root.attributes.draft_status.regex": "^[A-Za-z0-9_-]{1,64}$",
"root.attributes.is_active.field": "is_active",
"root.attributes.is_active.type": "BOOL",
"root.attributes.is_active.required": "False",
"root.attributes.is_active.source_required": "True",
"root.attributes.is_active.server_generated": "True",
"root.attributes.is_active.autogenerated": "False",
"root.attributes.is_active.frontend_autocomputed": "False",
"root.attributes.is_active.regex": "^(true|false)$",
"root.attributes.version.field": "version",
"root.attributes.version.type": "N",
"root.attributes.version.required": "True",
"root.attributes.version.source_required": "True",
"root.attributes.version.server_generated": "False",
"root.attributes.version.autogenerated": "False",
"root.attributes.version.frontend_autocomputed": "False",
"root.attributes.version.regex": "^\\d+$"
}
Response Schema¶
{
"type": "object",
"properties.ok.type": "boolean",
"properties.accepted.type": "boolean",
"properties.is_committed.type": "boolean",
"properties.request_id.type": "string",
"properties.message.type": "string",
"properties.table.type": "string",
"properties.operation.type": "string",
"properties.primary_key.type": "string",
"properties.primary_key_value.type": "string",
"properties.item_update_count.type": "number",
"properties.child_update_count.type": "number"
}
Request Payload¶
{
"checkout_draft_id": "3689a227-27f1-435f-a307-e4335508b4d4",
"cart_id": "2b8b5a00-d7ed-4668-8060-d32e01ef06e5"
}
Response¶
{
"type": "object",
"properties.ok.type": "boolean",
"properties.accepted.type": "boolean",
"properties.is_committed.type": "boolean",
"properties.request_id.type": "string",
"properties.message.type": "string",
"properties.table.type": "string",
"properties.operation.type": "string",
"properties.primary_key.type": "string",
"properties.primary_key_value.type": "string",
"properties.item_update_count.type": "number",
"properties.child_update_count.type": "number"
}
CMD curl¶
curl -X PATCH "https://dqo3268ty9.execute-api.ap-southeast-1.amazonaws.com/prod/store-checkout-drafts-patch-one" -H "Content-Type: application/json" --data-raw "{\"checkout_draft_id\": \"3689a227-27f1-435f-a307-e4335508b4d4\", \"cart_id\": \"2b8b5a00-d7ed-4668-8060-d32e01ef06e5\"}"
PowerShell curl¶
curl.exe -X PATCH "https://dqo3268ty9.execute-api.ap-southeast-1.amazonaws.com/prod/store-checkout-drafts-patch-one" -H "Content-Type: application/json" --data-raw '{"checkout_draft_id": "3689a227-27f1-435f-a307-e4335508b4d4", "cart_id": "2b8b5a00-d7ed-4668-8060-d32e01ef06e5"}'