nauticalOrderCapture Mutation
Capture a nautical order.
Arguments
#
paymentId
ID of the payment attached to the nautical order to capture. If not specified, the last payment on the order will be used.
Response
#
Returns NauticalOrderCapture .
Example
#
mutation ($amount: PositiveDecimal!, $id: ID!, $paymentId: ID) {
nauticalOrderCapture(amount: $amount, id: $id, paymentId: $paymentId) {
order {
id
externalId
externalSource
orderSource
created
updated
status
subStatus
languageCode
trackingClientId
currency
isMarketplaceShippingPriceOverridden
euInvoiceMessaging
vatIdentificationNumber
mpVatIdentificationNumber
token
discountName
translatedDiscountName
displayGrossPrices
customerNote
importedAt
poNumbers
allowedSubStatuses
actions
number
isPaid
paymentStatus
paymentStatusDisplay
statusDisplay
canFinalize
userEmail
isShippingRequired
shippingMethodName
marketplaceShippingMethodName
}
orderErrors {
field
message
code
warehouse
orderLine
variant
}
}
}
3
{
"amount": "3.14159",
"id": "aWQ6Njk=",
"paymentId": "cGF5bWVudElkOjg0"
}
3
{
"nauticalOrderCapture": {
"order": {
"id": "aWQ6MjQ=",
"externalId": "string",
"externalSource": "string",
"orderSource": "CHECKOUT",
"created": "2022-03-06T08:23:45.000Z",
"updated": "2022-03-06T08:23:45.000Z",
"status": "DRAFT",
"subStatus": "IN_REVIEW",
"languageCode": "string",
"trackingClientId": "string",
"currency": "string",
"isMarketplaceShippingPriceOverridden": true,
"euInvoiceMessaging": "string",
"vatIdentificationNumber": "string",
"mpVatIdentificationNumber": "string",
"token": "string",
"discountName": "string",
"translatedDiscountName": "string",
"displayGrossPrices": true,
"customerNote": "string",
"importedAt": "2022-03-06T08:23:45.000Z",
"poNumbers": [
"string"
],
"allowedSubStatuses": [
"IN_REVIEW"
],
"actions": [
"CAPTURE"
],
"number": "string",
"isPaid": true,
"paymentStatus": "NOT_CHARGED",
"paymentStatusDisplay": "string",
"statusDisplay": "string",
"canFinalize": true,
"userEmail": "string",
"isShippingRequired": true,
"shippingMethodName": "string",
"marketplaceShippingMethodName": "string"
},
"orderErrors": [
{
"field": "string",
"message": "string",
"code": "ATTRIBUTE_CANNOT_BE_ASSIGNED",
"warehouse": "d2FyZWhvdXNlOjEz",
"orderLine": "b3JkZXJMaW5lOjgz",
"variant": "dmFyaWFudDozNQ=="
}
]
}
}
3