@@ -387,3 +387,162 @@ order-transaction-refund:
387387 docs : " https://elasticpath.dev/docs/carts-orders/refund-a-transaction"
388388 url : " /v2/orders/{orders}/transactions/{order_transactions}/refund"
389389 openapi-operation-id : refundATransaction
390+
391+ manual-orders :
392+ singular-name : " manual-order"
393+ json-api-type : order
394+ json-api-format : legacy
395+ docs : " https://elasticpath.dev/docs/api/carts/orders"
396+ create-entity :
397+ docs : " https://elasticpath.dev/docs/api/carts/orders"
398+ url : " /v2/orders"
399+ attributes :
400+ id :
401+ type : STRING
402+ usage : " Optional custom order ID. If not provided, a UUID will be generated."
403+ status :
404+ type : ENUM:incomplete,processing,cancelled,complete
405+ usage : " The status of the order."
406+ payment :
407+ type : ENUM:paid,unpaid,refunded,partially_authorized,partially_paid
408+ usage : " The payment status of the order."
409+ shipping :
410+ type : ENUM:fulfilled,unfulfilled
411+ usage : " The shipping status of the order."
412+ anonymized :
413+ type : BOOL
414+ usage : " Whether the order should be anonymized."
415+ account.id :
416+ type : RESOURCE_ID:account
417+ usage : " The unique identifier of the account."
418+ account.member_id :
419+ type : RESOURCE_ID:account-member
420+ usage : " The unique identifier of the account member."
421+ contact.name :
422+ type : STRING
423+ usage : " Contact name for the order."
424+ contact.email :
425+ type : STRING
426+ usage : " Contact email for the order."
427+ customer.id :
428+ type : RESOURCE_ID:customer
429+ usage : " The unique identifier of the customer."
430+ autofill : FUNC:UUID
431+ customer.email :
432+ type : STRING
433+ usage : " Customer email address."
434+ autofill : FUNC:Email
435+ customer.name :
436+ type : STRING
437+ usage : " Customer name."
438+ autofill : FUNC:Name
439+ shipping_address.first_name :
440+ type : STRING
441+ autofill : FUNC:FirstName
442+ shipping_address.last_name :
443+ type : STRING
444+ autofill : FUNC:LastName
445+ shipping_address.company_name :
446+ type : STRING
447+ autofill : FUNC:Company
448+ shipping_address.line_1 :
449+ type : STRING
450+ autofill : FUNC:Street
451+ shipping_address.line_2 :
452+ type : STRING
453+ shipping_address.city :
454+ type : STRING
455+ autofill : FUNC:City
456+ shipping_address.county :
457+ type : STRING
458+ shipping_address.region :
459+ type : STRING
460+ autofill : FUNC:State
461+ shipping_address.postcode :
462+ type : STRING
463+ autofill : FUNC:Zip
464+ shipping_address.country :
465+ type : STRING
466+ autofill : FUNC:Country
467+ billing_address.first_name :
468+ type : STRING
469+ autofill : FUNC:FirstName
470+ billing_address.last_name :
471+ type : STRING
472+ autofill : FUNC:LastName
473+ billing_address.company_name :
474+ type : STRING
475+ autofill : FUNC:Company
476+ billing_address.line_1 :
477+ type : STRING
478+ autofill : FUNC:Street
479+ billing_address.line_2 :
480+ type : STRING
481+ billing_address.city :
482+ type : STRING
483+ autofill : FUNC:City
484+ billing_address.county :
485+ type : STRING
486+ billing_address.region :
487+ type : STRING
488+ autofill : FUNC:State
489+ billing_address.postcode :
490+ type : STRING
491+ autofill : FUNC:Zip
492+ billing_address.country :
493+ type : STRING
494+ autofill : FUNC:Country
495+ ^meta\.display_price\.(with_tax|without_tax|tax|discount|balance_owing|paid|authorized|without_discount|shipping|shipping_discount)\.amount$ :
496+ type : INT
497+ usage : " The amount of the order specified in currency subunits"
498+ ^meta\.display_price\.(with_tax|without_tax|tax|discount|balance_owing|paid|authorized|without_discount|shipping|shipping_discount)\.currency$ :
499+ type : CURRENCY
500+ usage : " The currency"
501+ ^meta\.display_price\.(with_tax|without_tax|tax|discount|balance_owing|paid|authorized|without_discount|shipping|shipping_discount)\.formatted$ :
502+ type : STRING
503+ usage : " The amount of the order specified as a formatted string"
504+ included.items[n].id :
505+ type : STRING
506+ usage : " The unique identifier of the item."
507+ included.items[n].type :
508+ type : CONST:order_item
509+ included.items[n].quantity :
510+ type : INT
511+ included.items[n].location :
512+ type : STRING
513+ included.items[n].product_id :
514+ type : RESOURCE_ID:pcm-product
515+ included.items[n].subscription_offering_id :
516+ type : RESOURCE_ID:subscription-offerings
517+ included.items[n].name :
518+ type : RESOURCE:STRING
519+ included.items[n].sku :
520+ type : STRING
521+ ^included\.items[n]\.(unit_price|value)\.amount$ :
522+ type : INT
523+ usage : " An amount in currency subunits if applicable (e.g., $100.00 would be 10000)"
524+ ^included\.items[n]\.(unit_price|value)\.currency$ :
525+ type : CURRENCY
526+ ^included\.items[n]\.(unit_price|value)\.include_tax$ :
527+ type : BOOL
528+ ^included\.items[n]\.meta\.display_price\.(with_tax|without_tax|tax|discount_without_discount)\.(unit|value)\.amount$ :
529+ type : INT
530+ usage : " An amount in currency subunits if applicable (e.g., $100.00 would be 10000)"
531+ ^included\.items[n]\.meta\.display_price\.(with_tax|without_tax|tax|discount_without_discount)\.(unit|value)\.currency$ :
532+ type : CURRENCY
533+ ^included\.items[n]\.meta\.display_price\.(with_tax|without_tax|tax|discount_without_discount)\.(unit|value)\.formatted$ :
534+ usage : " A formatted amount e.g., $100.00"
535+ type : STRING
536+ included.items[n].meta.timestamps.created_at :
537+ type : STRING
538+ included.items[n].meta.timestamps.updated_at :
539+ type : STRING
540+
541+
542+
543+
544+
545+
546+
547+
548+
0 commit comments