@@ -71,6 +71,41 @@ cart-items:
7171 type : INT
7272 id :
7373 type : RESOURCE_ID:pcm-products
74+ cart-custom-discounts :
75+ singular-name : " cart-custom-discount"
76+ json-api-type : " custom_discount"
77+ json-api-format : " legacy"
78+ no-wrapping : true
79+ docs : " https://developer.elasticpath.com/docs/api/carts/bulk-add-custom-discounts-to-cart"
80+ create-entity :
81+ docs : " https://developer.elasticpath.com/docs/api/carts/bulk-add-custom-discounts-to-cart"
82+ url : " /v2/carts/{carts}/custom-discounts"
83+ openapi-operation-id : bulkAddCustomDiscountsToCart
84+ content-type : application/json
85+ delete-entity :
86+ docs : " https://developer.elasticpath.com/docs/api/carts/bulk-delete-custom-discounts-from-cart"
87+ url : " /v2/carts/{carts}/custom-discounts"
88+ openapi-operation-id : bulkDeleteCustomDiscountsFromCart
89+ content-type : application/json
90+ attributes :
91+ data[n].amount :
92+ type : INT
93+ data[n].amount.amount :
94+ type : INT
95+ data[n].amount.currency :
96+ type : CURRENCY
97+ data[n].amount.formatted :
98+ type : STRING
99+ data[n].external_id :
100+ type : STRING
101+ data[n].discount_code :
102+ type : STRING
103+ data[n].type :
104+ type : CONST:custom_discount
105+ data[n].description :
106+ type : STRING
107+
108+
74109cart-product-items :
75110 singular-name : " cart-product-item"
76111 json-api-type : " cart_item"
@@ -387,3 +422,153 @@ order-transaction-refund:
387422 docs : " https://elasticpath.dev/docs/carts-orders/refund-a-transaction"
388423 url : " /v2/orders/{orders}/transactions/{order_transactions}/refund"
389424 openapi-operation-id : refundATransaction
425+
426+ manual-orders :
427+ singular-name : " manual-order"
428+ json-api-type : order
429+ json-api-format : legacy
430+ docs : " https://elasticpath.dev/docs/api/carts/orders"
431+ create-entity :
432+ docs : " https://elasticpath.dev/docs/api/carts/orders"
433+ url : " /v2/orders"
434+ attributes :
435+ id :
436+ type : STRING
437+ usage : " Optional custom order ID. If not provided, a UUID will be generated."
438+ status :
439+ type : ENUM:incomplete,processing,cancelled,complete
440+ usage : " The status of the order."
441+ payment :
442+ type : ENUM:paid,unpaid,refunded,partially_authorized,partially_paid
443+ usage : " The payment status of the order."
444+ shipping :
445+ type : ENUM:fulfilled,unfulfilled
446+ usage : " The shipping status of the order."
447+ anonymized :
448+ type : BOOL
449+ usage : " Whether the order should be anonymized."
450+ account.id :
451+ type : RESOURCE_ID:account
452+ usage : " The unique identifier of the account."
453+ account.member_id :
454+ type : RESOURCE_ID:account-member
455+ usage : " The unique identifier of the account member."
456+ contact.name :
457+ type : STRING
458+ usage : " Contact name for the order."
459+ contact.email :
460+ type : STRING
461+ usage : " Contact email for the order."
462+ customer.id :
463+ type : RESOURCE_ID:customer
464+ usage : " The unique identifier of the customer."
465+ autofill : FUNC:UUID
466+ customer.email :
467+ type : STRING
468+ usage : " Customer email address."
469+ autofill : FUNC:Email
470+ customer.name :
471+ type : STRING
472+ usage : " Customer name."
473+ autofill : FUNC:Name
474+ shipping_address.first_name :
475+ type : STRING
476+ autofill : FUNC:FirstName
477+ shipping_address.last_name :
478+ type : STRING
479+ autofill : FUNC:LastName
480+ shipping_address.company_name :
481+ type : STRING
482+ autofill : FUNC:Company
483+ shipping_address.line_1 :
484+ type : STRING
485+ autofill : FUNC:Street
486+ shipping_address.line_2 :
487+ type : STRING
488+ shipping_address.city :
489+ type : STRING
490+ autofill : FUNC:City
491+ shipping_address.county :
492+ type : STRING
493+ shipping_address.region :
494+ type : STRING
495+ autofill : FUNC:State
496+ shipping_address.postcode :
497+ type : STRING
498+ autofill : FUNC:Zip
499+ shipping_address.country :
500+ type : STRING
501+ autofill : FUNC:Country
502+ billing_address.first_name :
503+ type : STRING
504+ autofill : FUNC:FirstName
505+ billing_address.last_name :
506+ type : STRING
507+ autofill : FUNC:LastName
508+ billing_address.company_name :
509+ type : STRING
510+ autofill : FUNC:Company
511+ billing_address.line_1 :
512+ type : STRING
513+ autofill : FUNC:Street
514+ billing_address.line_2 :
515+ type : STRING
516+ billing_address.city :
517+ type : STRING
518+ autofill : FUNC:City
519+ billing_address.county :
520+ type : STRING
521+ billing_address.region :
522+ type : STRING
523+ autofill : FUNC:State
524+ billing_address.postcode :
525+ type : STRING
526+ autofill : FUNC:Zip
527+ billing_address.country :
528+ type : STRING
529+ autofill : FUNC:Country
530+ ^meta\.display_price\.(with_tax|without_tax|tax|discount|balance_owing|paid|authorized|without_discount|shipping|shipping_discount)\.amount$ :
531+ type : INT
532+ usage : " The amount of the order specified in currency subunits"
533+ ^meta\.display_price\.(with_tax|without_tax|tax|discount|balance_owing|paid|authorized|without_discount|shipping|shipping_discount)\.currency$ :
534+ type : CURRENCY
535+ usage : " The currency"
536+ ^meta\.display_price\.(with_tax|without_tax|tax|discount|balance_owing|paid|authorized|without_discount|shipping|shipping_discount)\.formatted$ :
537+ type : STRING
538+ usage : " The amount of the order specified as a formatted string"
539+ included.items[n].id :
540+ type : STRING
541+ usage : " The unique identifier of the item."
542+ included.items[n].type :
543+ type : CONST:order_item
544+ included.items[n].quantity :
545+ type : INT
546+ included.items[n].location :
547+ type : STRING
548+ included.items[n].product_id :
549+ type : RESOURCE_ID:pcm-product
550+ included.items[n].subscription_offering_id :
551+ type : RESOURCE_ID:subscription-offerings
552+ included.items[n].name :
553+ type : STRING
554+ included.items[n].sku :
555+ type : STRING
556+ ^included\.items\[n\]\.(unit_price|value)\.amount$ :
557+ type : INT
558+ usage : " An amount in currency subunits if applicable (e.g., $100.00 would be 10000)"
559+ ^included\.items\[n\]\.(unit_price|value)\.currency$ :
560+ type : CURRENCY
561+ ^included\.items\[n\]\.(unit_price|value)\.include_tax$ :
562+ type : BOOL
563+ ^included\.items\[n\]\.meta\.display_price\.(with_tax|without_tax|tax|discount_without_discount)\.(unit|value)\.amount$ :
564+ type : INT
565+ usage : " An amount in currency subunits if applicable (e.g., $100.00 would be 10000)"
566+ ^included\.items\[n\]\.meta\.display_price\.(with_tax|without_tax|tax|discount_without_discount)\.(unit|value)\.currency$ :
567+ type : CURRENCY
568+ ^included\.items\[n\]\.meta\.display_price\.(with_tax|without_tax|tax|discount_without_discount)\.(unit|value)\.formatted$ :
569+ usage : " A formatted amount e.g., $100.00"
570+ type : STRING
571+ included.items[n].meta.timestamps.created_at :
572+ type : STRING
573+ included.items[n].meta.timestamps.updated_at :
574+ type : STRING
0 commit comments