Quantcast
Channel: Square Developer Forums - Latest topics
Viewing all articles
Browse latest Browse all 1333

Orders with Fulfillment Dashboard Behavior

$
0
0

Hello:

We need the orders to show up in Merchant’s Dashboard, so “fulfillment” is added to each order.

There’s a strange behavior when a specific condition is met:

  1. An order is created via API
  2. The order has a fulfillment (state = PROPOSED, type = PICKUP)
Response has the following:
...ORDER:
    "state": "OPEN",
    "version": 1,
    "fulfillments": [
      {
        "uid": "Pz9pfqXmC0YMpiRdZZ6OPB",
        "type": "PICKUP",
        "state": "PROPOSED",

3a. If the order is $0, we use /pay with payment_ids = to finalize it
3b. If the order is >$0 we use /payments to finalize it
4. Since the order has a fulfillments it’s STATE is returned “OPEN”

The orders are now visible in Square Dashboard as “New, Paid”

image

  1. We update the order fulfillment to “state = COMPLETED” via API

The order disappears from the Square Dashboard. This is most likely because the order is FULFILLED, but still OPEN. (NOTE: If We update the order as Picked Up from the dashboard, The order remains visible in dashboard. Most likely because Square marks is as “COMPLETED” once fulfillments are completed)

  1. If we set order to COMPLETED by setting “state=COMPLETED”. The order is again visible in Square dashboard as “Completed, Paid”

7 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 1333

Trending Articles