Customer Status
type: query
This API query can be used to check if your customer is registered in the Sevi system. It will also return the pay later amount and availability in the region.
This API is not manditory. In general creating an order will initiate the onboarding and payment process.
type CustomerStatusType {
message: String!
payLaterAmount: Float!
status: CustomerStatus!
url: String!
}
Example reponse payload:
return {
status: CustomerStatus.ONBOARDING_REQUIRED,
payLaterAmount: 0,
message: "Customer needs to be onboarded on Sevi",
url: "http://sevi.io"
}
The above example can be concluded from the graphql schema