Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Add POST /ob/orderspend #1319

@placer14

Description

@placer14

In order to differentiate the intent of a client wanting to send money from the wallet in payment of an order (as part of completing checkout) or simply out of the wallet for other means, an API endpoint will be available for each case.

  • /ob/orderspend will be created and require the same arguments + orderID string
  • Requests to /ob/orderspend missing orderID will respond with a 400 Bad Request
  • Valid requests can flow through to the existing behavior
POST /ob/spend
{
	"wallet": "BTC",
	"address": "14M5mXu2Z4tiTnQrRL7xR7PjBXbm4eBTN1",
	"amount": 100000,
	"feeLevel": "NORMAL",
	"memo": "Yo"
}
POST /ob/orderspend
{
	"wallet": "BTC",
	"address": "14M5mXu2Z4tiTnQrRL7xR7PjBXbm4eBTN1",
	"amount": 100000,
	"feeLevel": "NORMAL",
	"memo": "Yo",
	"orderID": "QmYepkN7bAgqLiSa1Nu3cnVUX6bQQNwgHyc7vCf",
}

Metadata

Metadata

Assignees

Labels

featureFeature or enhancement to openbazaar-gomultiwallet

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions