Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mutation CreateNewOrder(
- $userEmail: String
- $userPhone: String
- $partnerOrderId: String!
- $customerNote: String
- $shippingAddress: AddressInput
- $billingAddress: AddressInput
- $products: [OrderProductLineInput]!
- $paymentStatus: PaymentChargeStatusEnum
- $shipping: ShippingPriceInput
- $discount: VoucherInput
- ) {
- createNewOrder(
- input: {
- userEmail: $userEmail
- userPhone: $userPhone
- partnerOrderId: $partnerOrderId
- shippingAddress: $shippingAddress
- billingAddress: $billingAddress
- customerNote: $customerNote
- products: $products
- paymentStatus: $paymentStatus
- shipping: $shipping
- discount: $discount
- }
- ) {
- order {
- id
- number
- userEmail
- status
- total {
- net {
- amount
- }
- }
- voucher {
- discountValue
- }
- totalBalance {
- amount
- }
- shippingMethod {
- name
- price {
- amount
- }
- }
- fulfillments {
- lines {
- quantity
- }
- status
- }
- payments {
- chargeStatus
- capturedAmount {
- amount
- }
- }
- shippingAddress {
- streetAddress1
- city
- }
- billingAddress {
- streetAddress1
- city
- }
- total {
- net {
- amount
- }
- }
- customerNote
- events {
- type
- date
- email
- }
- lines {
- productName
- productSku
- quantity
- unitPrice {
- net {
- amount
- }
- }
- }
- }
- orderErrors {
- code
- field
- message
- }
- __typename
- }
- }
- # ===========================================================================
- {
- "userEmail": "[email protected]",
- "userPhone": "01800000123",
- "partnerOrderId": "546",
- "customerNote": "try catch check",
- "paymentStatus": "FULLY_CHARGED",
- "shipping":{
- "name": "KCS",
- "price": 15
- },
- "discount": {
- "name": "new-year",
- "code": "ny",
- "discountValueType": "FIXED",
- "discountValue": 10
- },
- "shippingAddress": {
- "firstName": "Link road",
- "city": "Dhaka",
- "streetAddress1": "BADDA",
- "country": "BD"
- },
- "billingAddress": {
- "firstName": "Kazipara",
- "city": "Dhaka",
- "streetAddress1": "MIRPUR",
- "country": "BD"
- },
- "products": [
- {
- "name": "xiaomi monitor",
- "sku": "623",
- "basePrice": 1,
- "quantity": 20,
- "description": "hi",
- "category": "entertainment"
- },
- {
- "name": "ps 5",
- "sku": "624",
- "basePrice": 40,
- "quantity": 2,
- "description": "hi",
- "category": "entertainment7",
- "metaData": [
- {
- "key": "ram",
- "value": "8GB"
- },
- {
- "key": "brand",
- "value": "samsung"
- }
- ]
- }
- ]
- }
- #===============================================
- {
- "Authorization": "bearer gyMd70P7QUcvbzlEPp7TVbPJJf6AEt"
- }
Add Comment
Please, Sign In to add comment